← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689290]: app.focus()-need asistance

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
itracapp.focus('iTrac Dashboard')
### what is itracapp? 
### someApp.focus(someText) is not defined
### either App.focus(text) or someApp.focus()

while exists(Pattern("1582814114669-3.png").similar(0.81)):
    itracapp.focus('Error -9')
    ### see above

    wait(2)
    #
    where = Region(525,488,733,241)
    ### never used ??

    result = Do.popError("", "Unable to Launch the dashboard-retsrate is required", "", False, 3)
    # why is this an error here?

    click("1582821885318-3.png")
    wait(2)
    click(Pattern("1582821934102-3.png").similar(0.87))
    wait(1)

the logic of your workflow is not evident, sorry.

Generally: any action on the screen, while a script is running, can
steal the focus. So take care, that nothing else happens on your system,
that is not controlled by the script.

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