Sign in to follow this  
Followers 0
Bert

Input With Cancel Clicked

4 posts in this topic

#1 ·  Posted (edited)

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



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

#3 ·  Posted (edited)

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