Jump to content
Sign in to follow this  
Delai

A simple copy and paste

Recommended Posts

Delai

Hi Men, I have more than 4 windows opened and i want to copy a text from an "edit1" of a window to another "Edit" window. I have made it but it doesn´t works

here is my script:

ControlSend("Textpad-Documento", "", "Edit1", "^C")

ControlSend("Registration Activate", "", "Edit4", "^V")

Share this post


Link to post
Share on other sites
therks

Hi Men, I have more than 4 windows opened and i want to copy a text from an "edit1" of a window to another "Edit" window. I have made it but it doesn´t works

here is my script:

ControlSend("Textpad-Documento", "", "Edit1", "^C")

ControlSend("Registration Activate", "", "Edit4", "^V")

<{POST_SNAPBACK}>

I would assume that maybe the text isn't being selected before Ctrl+C, or that the other box doesn't support pasting. But... why use copy and paste at all? AutoIt has functions that can grab the text directly.

Try this:

$TextpadText = ControlGetText("Textpad-Documento", "", "Edit1")
ControlSetText("Registration Activate", "", "Edit4", $TextpadText)

Share this post


Link to post
Share on other sites
Delai

Thank you Men, i will try it :)

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
Sign in to follow this  

×