[AutoIt]Code for Restarter
#2

First thing you forgot to write [AutoIt] on your title tag.

 

Your code has some problems.

 

1)It looks for LCSM.exe not Connector.exe

2)When the Connector is crashing will not close(the process will remain there).

3)You dont need this, because you have your second while:

Do
Sleep(100)
Until ProcessExists("lcsm.exe")

3)look if the Process is working using the code your fried gave you:

fisrt you need to get the process Handle, using WinGetProcess();:

 

Then you need to check the the process i s hung up(your friend gave you the code):

$retArr = DllCall("user32.dll", "int", "IsHungAppWindow", "hwnd", $hWnd);
If retArr then
ProcessClose("Connector.exe");
Run( "Connector.exe")
EndIf



Messages In This Thread
[No subject] - by Nikolee - 02-21-2012, 04:08 PM
[No subject] - by someone - 02-21-2012, 07:30 PM
[No subject] - by Nikolee - 02-22-2012, 02:23 PM
[No subject] - by someone - 02-22-2012, 02:57 PM
[No subject] - by Nikolee - 02-22-2012, 03:03 PM
[No subject] - by kimmer01 - 03-18-2012, 06:05 PM
[No subject] - by Nikolee - 03-20-2012, 12:26 PM
[No subject] - by Wizatek - 03-20-2012, 05:14 PM
[No subject] - by Nikolee - 03-20-2012, 08:24 PM
[No subject] - by Koko - 03-20-2012, 09:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)