Setting one monitor for whole script in multi monitor

Asked by Stephen

I am trying to set the entire script to run on one monitor (Screen(2)) of my three monitor environment.
Is there an easy code to put at the beginning of the script so that all actions performed by the script take place on that screen or do I need to edit each code individually to look at that screen?
I tried reading through http://doc.sikuli.org/screen.html but it is confusing me. Please help. Very new to Sikuli and I know pretty much nothing.

Thank you for any help.

Using Sikuli 1.1.0 on Windows 7 x64

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

for the relevant docs for 1.1.0 start here:
http://sikulix.com

this is not yet documented, but should work:

# at beginning of script say
use(Screen(2))
click(someImage) # should be searched on Screen(2)

# as will happen with any Region methods, that are used undotted (not as someRegion.function())

Can you help with this problem?

Provide an answer of your own, or ask Stephen for more information if necessary.

To post a message you must log in.