AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

InputBox

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Petru



Joined: 17 Dec 2007
Posts: 64
Location: Galatz, Romania

PostPosted: Sun Dec 23, 2007 4:50 pm    Post subject: InputBox Reply with quote

How to detect if the user pressed the Cancel button of an InputBox?
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Dec 23, 2007 5:17 pm    Post subject: Reply with quote

You should check the "ErrorLevel".The help file has an example.
Back to top
leggah



Joined: 14 Oct 2007
Posts: 44

PostPosted: Sun Dec 23, 2007 5:22 pm    Post subject: Reply with quote

Code:
if ErrorLevel
{
; Do something
}
else
{
; Do something else
}
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group