Micahs
Joined: 01 Dec 2006 Posts: 460
|
Posted: Sun Dec 20, 2009 10:05 pm Post subject: |
|
|
| Code: | | Process, Close, firefox.exe |
This will close only the first instance if there are more than one. If you wanted to close all running instances, you could do this:
| Code: | Loop
{ Process, Close, firefox.exe
IfEqual, ErrorLevel, 0, Break ;if out of targets, exit loop
}
MsgBox, done
| If there is a problem with closing one instance, the loop will exit and the rest will not be closed, though. You could parse the list of running processes and close firefox.exe processes only. _________________
 |
|