Sign in to follow this  
Followers 0
=sinister=

Input Box

4 posts in this topic

I want my script so it asks them if you want to run the script and they have to type yes or no. If the type yes, I want my script to keep running. If they say no, i want it to exit. If they type anything else, I want it to exit. I don't want the msgbox saying if I want to run the script and you click yes or no. This is for other things too. Thanks.

I got this in the help file. Im not really good with variables so thats why i need help:

InputBox ( "title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut]]]]] )

Share this post


Link to post
Share on other sites



I want my script so it asks them if you want to run the script and they have to type yes or no. If the type yes, I want my script to keep running. If they say no, i want it to exit. If they type anything else, I want it to exit. I don't want the msgbox saying if I want to run the script and you click yes or no. This is for other things too. Thanks.

I got this in the help file. Im not really good with variables so thats why i need help:

InputBox ( "title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut]]]]] )

<{POST_SNAPBACK}>

Along the lines of

$proceed=INPUTBOX("Proceed", "Do you want to proceed", "", "", -1, 120)
if $proceed="yes" then
-----------
else
-----------
endif


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

how do I get it so that if I type yes, then it goes on with the script, but if it says no, then a pop up comes up saying "exiting..."?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Nvm, I got it. It was kinda tricky to figure out. Thanks for the script!

Edited by =sinister=

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