← Back to team overview

sikuli-driver team mailing list archive

[Bug 1115597] Re: [request] should be possible to change monitor setup during script run

 

I am sorry, but with the current version, there is no easy way, to tell
Sikuli, to reload the monitor setup.

All this is done, when the Java class Screen is first loaded (at the
Python level with "from sikuli import *"). Everything, that belongs to
the monitor setup information is static and or protected, so it is not
even possible, to change anything later.

The only possibility is, to force a reload of the Java class Screen (org.sikuli.script.Screen).
If you know how to do that from the Jython level, you might give it a try.

Recreating your own stuff does not help.

** Summary changed:

- Sikuli sees a half black screen on the second monitor
+ [request] should be possible to change monitor setup during script run

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Wishlist

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

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

Title:
  [request] should be possible to change monitor setup during script run

Status in Sikuli:
  In Progress

Bug description:
  Sikuli version: Sikuli 1.0rc3-r950 for windows 32bit
  OS: Windows 7 64bit

  I'm using Sikuli for a multiple monitors test.
  First, I created a screen object for each monitor and then store them in a list
  Then I loop through the list, for each object, I need to detect some image and also I need to detect if there is a black spot on any of the monitors. However, if I do a screen rotation on any of the monitor (primary or secondary), then take a screen shot, I found half of the second monitor was covered by black region.

  I tested this using Sikuli directly by running jython, and it
  certainly works. But when I'm using Pyro to remotely load Sikuli
  libraries (because I'm using python here), the black screen appears on
  the second monitor and fails my test :(

  I'm not sure if I state it clearly enough..

  Using jython to test the python module itself(import Sikuli in the
  python module), it works!

  Using Pyro to remotely load Sikuli libraries with a screen rotation
  doesn't work, but it works without rotation.

  
  Can anyone help me with this please?

  Thanks!

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


References