https://www.autoitscrip*****m/autoit3/docs/functions/ProcessExists.htm
Return Value
Success: the PID of the process.
Failure: 0 if process does not exist.
Code:
While ProcessExists("MicroVolts.exe")
Sleep(200)
WEnd
while the target-process
is found, your program will keep sleeping. ?
Probably wanted to wait/sleep UNTIL the process is found?
I'm not sure how you would write it in autoit...
While
!ProcessExists("MicroVolts.exe") // C++
While
Not (ProcessExists("MicroVolts.exe")) ''Vb.net
While ProcessExists("MicroVolts.exe")
== 0 // both. vb would use a single = , probably use this way
or use a Do-Until loop...technically it will sleep for 200ms even if the target-program is already running, but you won't notice.
Do
Sleep(200)
Until ProcessExists("MicroVolts.exe")