AutoHotkey Community

It is currently May 27th, 2012, 6:09 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: September 5th, 2004, 6:34 pm 
Offline

Joined: June 20th, 2004, 1:59 am
Posts: 39
Hi Chris,
I want to do this:

Msgbox,Click ok the ok button to run notepad. If you don't want to run notepad then click cancel.


My question is: how do I link a command to a button? Please provide good example. thank you for everything.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2004, 6:46 pm 
Code:
Msgbox, 1, Test, Click the OK button to run notepad.`nIf you don't want to run notepad then click cancel
IfMsgBox <> OK, ExitApp
Run, Notepad


Report this post
Top
  
Reply with quote  
 Post subject: bobo it didn't work
PostPosted: September 5th, 2004, 9:37 pm 
bobo,
I cut and paste your code on a notepad and try to run it but it game me errors. you sure you didn't make a typo?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2004, 10:17 pm 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
Code:
Msgbox, 1, Test, Click the OK button to run notepad.`nIf you don't want to run notepad then click Cancel.
     IfMsgBox <> OK
        ExitApp
Run, Notepad


This should work, Btw: if an error occurs would you be so kind to provide its statement. That would help a lot! Thx. :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2004, 10:27 pm 
Offline

Joined: April 28th, 2004, 1:12 pm
Posts: 349
Code:
Msgbox, 1, Test, Click the OK button to run notepad.`nIf you don't want to run notepad then click Cancel.
     IfMsgBox, Cancel, ExitApp
Run, Notepad


:wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks guys
PostPosted: September 6th, 2004, 5:15 am 
Thanks a lot guys! The code went smooth now, it worked.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, Wicked and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group