dmark1021 / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

Dual Monitor Bug on Application Running on a Secondary Display #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect your computer to a secondary display (Don't mirror the displays)
2. Try to run the HelloWorld Example on the secondary display.

What is the expected output? 
The application should work as it normally does on a single monitor.

What do you see instead?
The application crashes with NullPointerException.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by khalid3ahmed on 21 Oct 2012 at 12:31

Attachments:

GoogleCodeExporter commented 9 years ago
The dual monitor problem is not actually a bug, we just need to set the screen 
of the ScreenRegion to the area of the secondary display.
Something like this will do the trick:
screenRegion.setScreen(new DesktopScreen(1)); 
Where 0 is the main display and 1 is the secondary display.

Original comment by khalid3ahmed on 22 Oct 2012 at 6:53