← Back to team overview

sikuli-driver team mailing list archive

[Question #709291]: Documentation of "Use()" command

 

New question #709291 on SikuliX:
https://answers.launchpad.net/sikuli/+question/709291

I hope it's not already answered/documented, but as you can imagine it's hard to find relevant results with "use" keyword in search.

There is no documentation about the "Use()" command which seems to be really useful, especially in multi-monitor environment ; the only article I found about it is this one :
https://answers.launchpad.net/sikuli/+question/708296

For example, I would like to know which is the current "default screen region" set in the running session (IDE or script) ; let's take this code and assume the command I'm looking for is "getCurrentDefaultScreen()":

getCurrentDefaultScreen() #should return 0 or 1, depending of the setup
use(Screen(2))
getCurrentDefaultScreen() #should return 2
use()
getCurrentDefaultScreen() #should return same as first line

Did I miss something?

Thanks in advance

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