Screenshots do not use correct screen resolution

Asked by MPE

When I make a screenshot the top and left of my laptopscreen is blackened out. Instead it should be possible to make a screenshot of every part of the screen. Furthermore, Sikuli is not able to find certain pictures that are located in the black areas.
 Running Sikuli 1.1.1., Linux Mint 18.1.

See pictures to get a better idea of the problem:
https://s23.postimg.org/3ra35tiqj/Sikuli_screen_resolution.png

Should you need more info, please feel free to ask, and thanks a million for your time!

MPE

Question information

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

Seems like a problem with some Linux flavors and their GUI/Window manager.

The missing area at the top seems to have the dimension of the top menu bar and the part at the left seems to be a space usually taken by some task bar (like on Ubuntu).

This is a problem, how the screen origins and dimensions are internally reported to the Java Robot class (which in turn is used by Sikuli to capture the screen).

So you either have to dive into SikuliX debugging (BTW: sure you are using 1.1.1? The shot says 1.1.0) and come back with more information or take care, that the things needed are in the "visible" area.

Revision history for this message
MPE (maartenpelgrim) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
MPE (maartenpelgrim) said :
#3

I had indeed placed the plank dock at the left side of my screen. Once I had exited the application, the areas at the left side were no longer blacked out.

I am using 1.1.1. however, though the screenshot was indeed 1.1.0. I had the same problem in 1.1.1., but again, this is now solved!