← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #265446]: "Matching Preview" of the "Pattern Settings"

 

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

    Status: Answered => Open

eduardobedoya is still having a problem:
If my script beginn with App.focus("IrfanView") and then I set a region,
It doesn't matter wich line comes first in the script right? (the App.focus("IrfanView") or the reg = Region())
It worked fine, I doubled the speed
currently Im setting my region this way
reg = Region(x, y, w, h)
and then in every match
matches = list(reg.findAll(image))
But I really would like to search only inside "IrfanView" app
I have notice that, if "IrfanView" is minimized the script runs whitout call it back, I would like to avoid that even when I use App.focus("IrfanView") at the beginning
How should I write the script in order to it to make sure "IrfanView" windows is in focus, is not minized, before set the region

Thanks Advanced.

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