← Back to team overview

sikuli-driver team mailing list archive

[Bug 1288796] Re: [1.0.1] MultiMonitor: negative Y value for second monitor might muss up monitor config

 

Hello,

I had test on my computer with 2 screens on Windows 7 and Windows XP.
I couldn't find any trouble on the Screen class. I also try the code in the report, it's work fine.
The Screen word is in red, but it's not mean that Sikuli don't find any screen, it's just an effect on some Sikuli word.
The negative value on X or Y are correctly manage as well. 
The only "default" I found, it's we have to restart when you change the OS screen settings.

I test the following code :
print "Screen 0 : ", Screen(0)
print "Screen 1 : ", Screen(1)
Screen(0).highlight(5)
Screen(1).highlight(5)

I obtain the following result :
Screen 0 : S(0)[0,0 1366x768] E:Y, T:3,0
Screen 1 : S(1)[-1440,-900 1440x900] E:Y, T:3,0
[log] highlight S(0)[0,0 1366x768] E:Y, T:3,0 for 5.0 secs
[log] highlight S(1)[-1440,-900 1440x900] E:Y, T:3,0 for 5.0 secs

The two screens are correctly highlight.
Regards.


** Changed in: sikuli
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1288796

Title:
  [1.0.1] MultiMonitor: negative Y value for second monitor might muss
  up monitor config

Status in Sikuli:
  Incomplete

Bug description:
  Hey, I'm pretty new to Sikuli but am struggling with this multiple
  monitor thing.  I've looked through other posts and didn't quite find
  an answer.  I'm running Windows 7 (maybe that's the problem!) and have
  a laptop with an external monitor.  My external monitor is my primary
  desktop with the Start bar at the bottom and my laptop sits to the
  left.  When I run the code below, it tells me that I have 2 monitors,
  but I can't get it to select a region over on my laptop screen.  And
  in the line "scr=Screen(0)" the word Screen is red which tells me that
  it doesn't recognize that class name or something (I'm using the IDE
  by the way).  I've also tried Screen(1) and Screen(2) with no change.
  It allows me to select a region on my primary external monitor but
  never on my laptop screen:

  def changed(event):
          #popup("something changed ")
          for ch in event.changes:
                  ch.highlight() # highlight all changes
          sleep(1)
          for ch in event.changes:
                  ch.highlight() # turn off the highlights
  ns = getNumberScreens()
  popup("Number of screens = " + str(ns))
  scr=Screen(0)
  r = scr.selectRegion("Please select the region")
      # any change in r larger than 50 pixels would trigger the changed function
  r.onChange(50, changed)
  r.observe(5, background=False)

  r.stopObserver()
  popup("Done looking")

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1288796/+subscriptions


References