while the target-process is found, your program will keep sleeping. ?Code:While ProcessExists("MicroVolts.exe") Sleep(200) WEnd
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")