Delai Posted March 19, 2005 Share Posted March 19, 2005 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 More sharing options...
therks Posted March 19, 2005 Share Posted March 19, 2005 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 workshere 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) My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Delai Posted March 20, 2005 Author Share Posted March 20, 2005 Thank you Men, i will try it Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now