Hi so i found this in an another topic and there is a comment to the ErrorLevel that 0 indicates that the process is not running therefore there is an error level but here http://ahkscript.org.../ErrorLevel.htmthey said that 0 indicates that there is no error level. Can anyone explain this to me ? Soory if there are any english misteakes ;/
Process, Exist, Printkey2000.exe ; check to see if Printkey.exe is running
If (ErrorLevel = 0) ; If it is not running
{
Run, Printkey2000.exe
msgbox Program was not running.
}
Else ; If it is running, ErrorLevel equals the process id for the target program (Printkey). Then close it.
{
Process, Close, %ErrorLevel%
msgbox Closed process %ErrorLevel%
}