← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #255170]: How do I catch switchApp failure?

 

Question #255170 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255170

    Status: Open => Answered

RaiMan proposed the following answer:
--- sys.exit()

yes, this should not be used in Sikuli scripts.

Sikuli has it's own exit(n), to gracefully stop the script with an error
code. exit() returns 0.

--- App.focus() and similar leads to flashing icon only
As far as I understand: this is a standard behaviour on Windows with the internally used Windows API features (... and can be seen with many other app situations running in background, but need the user's attention)

Thanks for posting a bug on this. I have accepted it for version 1.2
(... where the revision of the App class features is on the list anyway)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.