← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #578456]: [1.1.1] macOS: App.focus: Occasionally: Where is osascript

 

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

    Status: Answered => Open

Jeff_Vallis is still having a problem:
Tried the above code as soon as recieved and have been waiting for the choose Choose Application box to appear - checking my log each day to see if print "Running Check_App_Focus - Found Choose Application" had appeared.
Today the box was on the screen and again the process hang (waited) for cancel to be clicked manually.
So it does not get to the line :-
 if not If_Choose_App_Appeared():
until box is clicked.

From
http://sikulix-2014.readthedocs.io/en/latest/region.html#observing-visual-events-in-a-region
would observeInBackground do what I am trying to achieve
if so how would I code it switching it on before App.focsu and switching it off after 


do something to observeInBackground
App.focus("Tynon")
do something to stopObserver()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.