Sign in to follow this  
Followers 0
jacobraccuia

Input Box Help!

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



I got it using

$value = inputbox("IP Address", "Please type in an IP Address and click OK")

ClipPut($value)

$bak = ClipGet()

Send("^v")

thanks!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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  
Followers 0