Jump to content

A simple copy and paste


 Share

Recommended Posts

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")

Link to comment
Share on other sites

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...