| View previous topic :: View next topic |
| Author |
Message |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Jun 26, 2004 3:25 pm Post subject: I need to close down or exit out completely |
|
|
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 |
|
 |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Jun 26, 2004 3:27 pm Post subject: I forgot to post my script. |
|
|
^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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Sat Jun 26, 2004 3:35 pm Post subject: |
|
|
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 |
|
 |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Jun 26, 2004 4:10 pm Post subject: Thank you. |
|
|
| Thank you very much Sir! I appreciate the kind help in this forum. |
|
| Back to top |
|
 |
|