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 

I need to close down or exit out completely

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



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Jun 26, 2004 3:25 pm    Post subject: I need to close down or exit out completely Reply with quote

I have three autohotkey icons in the windows system tray. Each icon is an independent script that I run. My question is: how do I create a fourth script with a hotkey(hotkey is F12) that will close down all three scripts plus itself(fourth script) down when I click on F12?

Also, if it's not too much trouble please give me some feedback on how I can make my script be more efficient. Thanks a head....I'll be checking in and out for answers.
Back to top
View user's profile Send private message
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Jun 26, 2004 3:27 pm    Post subject: I forgot to post my script. Reply with quote

^s::

If a=b
{
Send={F12}
ExitApp
return
}
a=b

{
If Send={F12}
return
Run,apple.exe,C:\WINDOWS\system32
Run,orage.exe,C:\WINDOWS\system32
Run,pear.exe,C:\WINDOWS\system32
}
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sat Jun 26, 2004 3:35 pm    Post subject: Reply with quote

I use this:
Code:
F12::
DetectHiddenWindows, on
SetTitleMatchMode, 2
; First close all other instances of AutoHotkey except this one:
Loop
{
   IfWinNotExist, - AutoHotkey v, , %A_SCRIPTFULLPATH%
      break
   WinClose
   WinWaitClose
}
; Now close this one:
ExitApp
Back to top
View user's profile Send private message Send e-mail
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Jun 26, 2004 4:10 pm    Post subject: Thank you. Reply with quote

Thank you very much Sir! I appreciate the kind help in this forum.
Back to top
View user's profile Send private message
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