Hi,
I'm encountering an issue about this kind of commands and at the same time I saw this post and thought that this code may need correction :
Instead of this :
Code:
Loop,
{
Process, Wait, AutoHotkey.exe
Process, WaitClose, AutoHotkey.exe
}
ExitApp
this is enough :
Code:
Process, Wait, AutoHotkey.exe
Process, WaitClose, AutoHotkey.exe
No need to Loop then no CPU load.
Because the process command will wait by itself and proceed to the next line when the first contition (AutoHotkey.exe process existing) will be met.
The the second instruction will go to next line (wathever it is) , when the condition (AutoHotkey.exe process closing) will be met too.
Correct me if it's wrong