mkm3k Posted April 30, 2007 Posted April 30, 2007 I wanna Process kill with other program.. -- RunWait("ptkill.exe 580") ==> Good Work. but $pid=ProcessExits("program.exe") RunWait("ptkill.exe $pid") or RunWait("ptkill.exe" & $pid) not work. What's Problem? Thx.
Generator Posted April 30, 2007 Posted April 30, 2007 (edited) I wanna Process kill with other program.. -- RunWait("ptkill.exe 580") ==> Good Work. but $pid=ProcessExits("program.exe") RunWait("ptkill.exe $pid") or RunWait("ptkill.exe" & $pid) not work. What's Problem? Thx.If I were you I will do: Run("ptkill.exe") While 1 If $pid=ProcessExist("ptkill.exe") Then ProcessClose($pid) EndIf Sleep(250) WEnd Edit: Added sleep Edited April 30, 2007 by Generator
jokke Posted April 30, 2007 Posted April 30, 2007 (edited) Heh, well Genreator said it. Edited April 30, 2007 by jokke UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
smashly Posted April 30, 2007 Posted April 30, 2007 (edited) RunWait("ptkill.exe" & $pid) not work.I'm only guessing ,pretty sure it'll be because you've not left a space between ptkill.exe and the process id. eg: RunWait("ptkill.exe" & " " & $pid) Cheers Edited April 30, 2007 by smashly
mkm3k Posted April 30, 2007 Author Posted April 30, 2007 I'm only guessing ,pretty sure it'll be because you've not left a space between ptkill.exe and the process id. eg: RunWait("ptkill.exe" & " " & $pid) <= It's work good for me ^^ Bye.. Have nice day..!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now