Thanks Jpaigva for the clarification.
I created a EXE using ahk2exe but when i run it nothing happens.
Could somebody check this code and tell me if some thing is wrong.
Spoiler
; To kill some tasks prior to running any CPU-intensive apps
; Date: 18/03/2006
; Modified from its original version due to a request in DC forums
; Refer: hxxp://www.donationcoder.com/forum/index.php?topic=3413.0
; Adjust path to PsKill as necessary...
#SingleInstance ignore
#NoTrayIcon
DetectHiddenWindows On
SetTitleMatchMode 2 ; not sure if needed but just in case.
;declare all unwanted processes
;just processes' name will do
ToClose =
( Join|
InoRT.exe
jusched.exe
InoTask.exe
)
;MsgBox %ToClose% ;test var
;Close AllChars, CLCL, AVGamsvr, AVGcc, AVGupsvc
Loop, Parse, ToClose, |
{
;MsgBox, Process #: %A_Index% is %A_LoopField%. ;test var
Process, Exist, %A_LoopField%.exe
NewPID = %ErrorLevel% ; Save the value since ErrorLevel often changes.
If NewPID <> 0 ;
{
;MsgBox Process %A_LoopField%.exe is found, with the process ID of %NewPID%. ;test var
Run, C:\MyPrograms\CommonApps\SysTools\pskill.exe %NewPID%
}
}
Return
Thanks