| View previous topic :: View next topic |
| Author |
Message |
tommyrot
Joined: 02 Aug 2006 Posts: 8
|
Posted: Tue Oct 24, 2006 2:36 am Post subject: trigger macro when program is closed |
|
|
Here's another tricky one!
I want to be able to trigger a macro that restarts the PC whenever a nominated program is ended in the task manager... any thoughts? |
|
| Back to top |
|
 |
AiKscroll
Joined: 06 Jun 2005 Posts: 179 Location: Northern Virginia
|
Posted: Tue Oct 24, 2006 2:45 am Post subject: |
|
|
Check out Windows Messages _________________ _AiK |
|
| Back to top |
|
 |
.AHK
Joined: 26 Apr 2006 Posts: 662 Location: USA
|
Posted: Tue Oct 24, 2006 2:56 am Post subject: |
|
|
| Code: |
Run notepad.exe
Loop {
Sleep 100
Process Exist, notepad.exe
If ErrorLevel = 0
{
MsgBox Notepad.exe closed.
Break
}
}
Return |
|
|
| Back to top |
|
 |
|