Jump to content
Sign in to follow this  
Bert

Input With Cancel Clicked

Recommended Posts

Bert

I know I can make the input command require something to make the "OK" button work.

InputBox("", "test","", " M")

How do I make it so if the user clicks on cancel nothin happens? I wish to disable the cancel button. Is this possible, or am I going to have to make a GUI instead?

Edited by vollyman

Share this post


Link to post
Share on other sites
big_daddy

I know I can make the input command require something to make the "OK" button work.

InputBox("", "test","", " M")

How do I make it so if the user clicks on cancel nothin happens? I wish to disable the cancel button. Is this possible, or am I going to have to make a GUI instead?

Maybe something like this would work:

While 1
InputBox("Test", "This is a test.")
If @error <> 1 Then ExitLoop
WEnd

Share this post


Link to post
Share on other sites
Danny35d

You can try something like:

Do
    $InputBox = InputBox("Test","","M"," ","-1","-1","-1","-1")
Until @error == 0

Edit: Big_daddy type faster than me.... :think:

Edited by Danny35d

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.