Sign in to follow this  
Followers 0
16011988

InputBox

6 posts in this topic

Hi

I want to write a program that first starts a "InputBox" and then it writes the text, wich is beeing inserted at the InputBox, with the send function...

does anybody know how I insert a variable in the Send funktion???

Here the Script

$answer = InputBox("text","text","","",-1,-1,0,0)

sleep(1000)

send(&$answer&)

sleep(5000)

exit 0

Share this post


Link to post
Share on other sites



Hi

I want to write a program that first starts a "InputBox" and then it writes the text, wich is beeing inserted at the InputBox, with the send function...

does anybody know how I insert a variable in the Send funktion???

Here the Script

$answer = InputBox("text","text","","",-1,-1,0,0)

sleep(1000)

send(&$answer&)

sleep(5000)

exit 0

Should just be Send($answer)


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

bigdod wouldnt u need a guictrlread to read the input box?

Share this post


Link to post
Share on other sites

bigdod wouldnt u need a guictrlread to read the input box?

Whats a "guictrlread"???????

Sorry I started yesturday to learn the language...

Share this post


Link to post
Share on other sites

bigdod wouldnt u need a guictrlread to read the input box?

No InputBox does not need it, see below

$answer = InputBox("text","text","","",-1,-1,0,0)
sleep(1000)
MsgBox(0,"answer",$answer)


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Should just be Send($answer)

Hey Thanks BigDog it works now I din't thought that it is so easy :P

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