[AutoIT / Question] Killing sro_client.exe process (iSRO)

04/23/2012 15:07 The_Wizard#1
Hello.

Some days ago I tried to make an AutoIT program that kills my sro_client.exe process at a certain time, but I can't figure out how to kill that process since this it's not working:

Code:
$sro = ProcessExists("sro_client.exe")
If $sro Then ProcessClose($sro)
If anyone can help me, I would really appreciate it. Thanks in advance.
04/23/2012 15:33 M4n1ak#2
Code:
If ProcessExists("sro_client.exe") Then ProcessClose("sro_client.exe")
Not so hard ;p
04/23/2012 15:56 The_Wizard#3
Quote:
Originally Posted by M4n1ak View Post
Code:
If ProcessExists("sro_client.exe") Then ProcessClose("sro_client.exe")
Not so hard ;p
Thanks for trying, but it doesn't work...
04/23/2012 17:06 M4n1ak#4
Code:
While 1
    If ProcessExists("sro_client.exe") Then ProcessClose("sro_client.exe")
    Sleep(1000)
WEnd
Checking all time if process exists with 1sec delay..
04/23/2012 17:17 The_Wizard#5
Quote:
Originally Posted by M4n1ak View Post
Code:
While 1
    If ProcessExists("sro_client.exe") Then ProcessClose("sro_client.exe")
    Sleep(1000)
WEnd
Checking all time if process exists with 1sec delay..
It still doesn't work. ProcessClose returns value 3 (3 = TerminateProcess Failed).
04/24/2012 07:13 theoneofgod#6
HackShield prevents the "OpenProcess" API call. Appears that the only Operating System that I've got to work is XP x64.
02/24/2013 01:30 MichalWDZ#7
;Function Name: Kill Proc
;Usage: _killProc('sro_client.ee')
Func _killProc($sPID)
If IsString($sPID) Then $sPID = ProcessExists($sPID)
If Not $sPID Then Return SetError(1, 0, 0)
Return Run(@ComSpec & " /c taskkill /F /PID " & $sPID & " /T", @SystemDir, @SW_HIDE)
EndFunc

Not So HarD ^^
02/24/2013 10:39 Bartic#8
Check the date of the last reply. Not only the guy got the answer, but you bumped an old thread.
02/24/2013 18:15 [GM]Obvlision#9
This Problem with me too :S