Jump to content
Sign in to follow this  
mkm3k

Help!

Recommended Posts

mkm3k

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.

Share this post


Link to post
Share on other sites
Generator

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 by Generator

Share this post


Link to post
Share on other sites
jokke

Heh, well Genreator said it.

Edited 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.

Share this post


Link to post
Share on other sites
smashly

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 by smashly

Share this post


Link to post
Share on other sites
mkm3k

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..!!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×