Sign in to follow this  
Followers 0
mkm3k

Help!

5 posts in this topic

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



#2 ·  Posted (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 by Generator

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

#4 ·  Posted (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 by smashly

Share this post


Link to post
Share on other sites

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  
Followers 0