Bert Posted April 20, 2006 Share Posted April 20, 2006 (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 April 20, 2006 by vollyman The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted April 20, 2006 Moderators Share Posted April 20, 2006 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 Link to comment Share on other sites More sharing options...
Danny35d Posted April 20, 2006 Share Posted April 20, 2006 (edited) You can try something like:Do $InputBox = InputBox("Test","","M"," ","-1","-1","-1","-1") Until @error == 0Edit: Big_daddy type faster than me.... Edited April 20, 2006 by Danny35d AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
Bert Posted April 20, 2006 Author Share Posted April 20, 2006 perfect! thanks! The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now