I am trying to write a script to search if a process is runing, if its not runing then open it.
did i missed something?
Code: Select all
#MaxThreadsPerHotkey 2
F12::pause
F10::reload
F11::
Loop
{
Process, Exist, window.exe ; check to see if window.exe is running
If (ErrorLevel != 0)
{
Run, C:\Users\User\Downloads\lostbait\window.exe
Return
}
else
{
Return
}
Sleep 30000 ; sleep 30 secs
}