How to pause the main script when handling an event using observeInBackground
I've been attempting to stop the script while handling my events when using observeInBackgr
I wanted to know if you could provide any advice for a work around?
You mentioned (in the linked answer) using a global variable, but if I'm expecting to be able to preform several finds in that period and an unexpected popup appears, would there be a "clever" or more efficient way of protecting the script?
Would using try statements with a check in the except be practical (they'd have to wrap almost everything if it was a random popup, no?) or testing for the global variable before clicks?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask edlothiad for more information if necessary.