Arclite86

Send paste??

11 posts in this topic

i would like to paste

this is what i have tried

 

Send({LCTRL}+"V")

 

Share this post


Link to post
Share on other sites



Try

Send("^v")

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

when i do this i do

sleep(3000) to give me enough time to point te mouse on a note to test

this is what it shows

send("^v")

 

so exactly the same instead of my copy

 

btw im running v3.3.12.0 scite version 3.4.4

 

Share this post


Link to post
Share on other sites

Can you please post your full script? With just a single line it is impossible to tell what goes wrong.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#include <String.au3>

#include <MsgBoxConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#include <FF V0.6.0.1b-14.au3>

#include <staticConstants.au3>
#include <IE.au3>
#include <String.au3>
#include <Excel.au3>
#include <Array.au3>
#include <FileConstants.au3>


#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>





#Region ### START Koda GUI section ### Form=
$Form1_1_1_1 = GUICreate("hi", 663, 552, 658, 71)
$test = GUICtrlCreateButton("test", 8, 504, 73, 25)
$List1 = GUICtrlCreateList("", 416, 232, 225, 266, BitOR($WS_BORDER, $WS_VSCROLL))
GUICtrlSetData(-1, "")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###







Global $iIndex = 0, $sListData1 = "C:\Users\joesoef\Desktop\autoit\lijsten\text.txt"
Global $sListFile1 = "C:\Users\joesoef\Desktop\autoit\lijsten\text.txt"

If FileExists($sListFile1) Then

    $sListData1 = StringReplace(FileRead($sListFile1), @CRLF, "|")

EndIf


GUICtrlSetData($List1, $sListData1)
_GUICtrlListBox_SetCurSel($List1, $iIndex)




$lees = _GUICtrlListBox_GetCount($list1)
GUICtrlSetData($reademails,$lees)

$lee5 = $lees/5
GUICtrlSetData($reademails5,$lee5)
; email informatie


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit



        case $test

sleep(3545)

Send("^v")

    EndSwitch
WEnd

 

Share this post


Link to post
Share on other sites

When you click on button $test then this control has the focus. Means: With ctrl+v you try to copy the data from the clipboard to the button - but the button is readonly.
Try function ControlFocus to set the focus to the control (input, edit ...) you want the data to paste to.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I'm a bit confused.

Are you trying to rename a button or paste into a document?

You should give a somewhat detailed description of your aim.


TheSaints' Robust Chat

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox

userbar.png

Share this post


Link to post
Share on other sites

 

I'm a bit confused.

Are you trying to rename a button or paste into a document?

You should give a somewhat detailed description of your aim.

I just want it to paste were ever the mouse focus (left mouse click)

Share this post


Link to post
Share on other sites

Then you have to set the focus after pressing the button as I suggested above.

1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

thank you strange enough that worked :-)

Share this post


Link to post
Share on other sites

It's not strange. It is exactly what I expected ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now