jacobraccuia Posted February 19, 2010 Posted February 19, 2010 I am creating a simple macro to help me do some work. I need to create an input box, and when I type in the information and click okay, it pastes the information at the designated line in the program. Essentially, if I open notepad and then run the script, I should be able to type in information, click enter, and see the text appear in notepad. This is really basic, I know! Right now, I just have - $text = InputBox("IP Address", "Please type in an IP Address and click OK") Thanks so much, I really appreciate any help!
kaotkbliss Posted February 19, 2010 Posted February 19, 2010 look into send or controlsend next 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
jacobraccuia Posted February 19, 2010 Author Posted February 19, 2010 I got it using $value = inputbox("IP Address", "Please type in an IP Address and click OK") ClipPut($value) $bak = ClipGet() Send("^v") thanks!
kaotkbliss Posted February 19, 2010 Posted February 19, 2010 you could have done ControlSend("[CLASS:Notepad]", "", "Edit1", $value) instead 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
jacobraccuia Posted February 19, 2010 Author Posted February 19, 2010 What class would I put if I want it to send to where it last ended off. Using notepad as an example, I'm typing in notepad, run the script, and I want it to paste where I left off
kaotkbliss Posted February 19, 2010 Posted February 19, 2010 ControlSend("[CLASS:Notepad]", "", "Edit1", $value&@CR) however, if you close notepad and reopen it, it will start from the very top again. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
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