Comment 0 for bug 1728090

Revision history for this message
RaiMan (raimund-hocke) wrote :

I am finding Sikuli to be a great solution to my testing project but have ran into something I can use a little guidance on.

I have 2 different docking stations I plug my laptop into. The screen resolution on the 2 monitors is different (1920x1080 vs 1920x1200). When I'm connected to the docking station with a lower resolution (1920x1080) the matching preview doesn't display the bottom area of the screen.

When I start Sikuli I see the following:

+++ running this Java
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode, sharing)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\sikulix\sikulix.jar
Oct 27, 2017 6:10:20 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
[info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[error] IDE: Remembered window not valid. Going to primary screen

If I check the screens and bounds I get the following:
print "Screens: ", getNumberScreens()
print "Bounds: ", getBounds()
Screens: 1
Bounds: java.awt.Rectangle[x=0,y=0,width=1920,height=1080]

Is there a configuration somewhere I can adjust for this situation or how can I manage this so I can select between the two?

Thanks in advance