Windows 7: multi-monitor support not working

Asked by J Sproat

Even after telling sikuli to search on the second monitor (as descrived in other FAQs) - the findfailed for me.
My script looks like this:
numScreens = getNumberScreens()
print "numScreens is %d" % numScreens #returns 2 as expected
SCREEN.find("Lumsmls.png")#this is on primary and PASSES
#Screen(0).find("Lumsmls.png") #this FAILS, why?
sb2= Screen(1)
sb2.find("VIIDEIUnread.png") #this FAILS too???should Pass???
I am on Win 7 SP1
Sikuli X-1.0rc3 (r905)
Java 6

Question information

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

might be, that in your configuration
Screen(1) is the primary and Screen(0) the secondary.

so if they have different dims:
print Screen(0)
print Screen(1)

and you might try
hover(Screen(0))
hover(Screen(1))

which should move the mouse to the center of the respective screen

Revision history for this message
J Sproat (jackiesproat) said :
#2

Thankyou RaiMan!
Your hunch was correct - I set SCREEN 1 to be the primary and assumed the index would change accordingly.