sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28528
Re: [Question #255202]: How to use functions with a default region
Question #255202 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255202
Status: Open => Answered
Eugene S proposed the following answer:
Hi,
To create a new Screen object you must pass a screen id as a parameter:
Screen([id])
You can read that in the documentation:
http://doc.sikuli.org/screen.html#Screen.Screen
If you have a single screen setup, that will be 0, so your function will become:
def tryClick(img,reg=Screen(0), delay = 5)
Eugene
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.