← 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: Open => Answered

RaiMan proposed the following answer:
LOL .... and sorry - so stupid: the dialog box is triggered from within
the App.focus() handling - so it cannot proceed until clicked and hence
cannot come to the code, that would click the box from within the
script.

So correct: either the App.focus() or the box handling must run in
parallel.

- App.focus(): just put it in def() and run the def() in a Python thread
(simple)

- box handling: use observe in background with the code in an onAppear()
handler.

I do not have the time currently for example code. Come back again if
you need more help.

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