Linux: Menu bar does not appear with capture(SCREEN)

Asked by Edmundo VN

I know there are several ways to do that, but Im trying to use capture(SCREEN).
Im using Linux Mint 17.1 with Cinnamon and Sikuli 1.1.0.

The region of the screen is right and the size of the image captured is of the size of the screen. But the top and bottom menu bars appears as a black area in the image.

Why exactly this method doesn't capture the menu bars?

Question information

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

Yes, this does not work with various Linux window/desktop managers.

On my current Ubuntu 14.04 test system I have the settings so that the bars auto-vanish.
If I have the bars fixed visible the behaviour is odd.

To look for the reasons is not my priority in the moment, sorry.

BTW: this is completely different to the Mac top menu situation: this is included when using capture(SCREEN). You are not able to start a manual capture in the menu bar, but only slightly below.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

I removed the pointers to the Mac question from your question, since these 2 problems are not related (see comment #1)
When you use capture(SCREEN) on Mac, the top menu bar is shown in the image and not black as in your case.

In your Linux case, the problem is with the internally used Java Robot class and it's feature captureScreen(). Apparently the missing (black) portions are not available in the buffers, Robot is accessing to grab the screen content.
Hence SikuliX does not have it either.

as mentioned: I know that problem (facing it myself with my testing), but not willing to track it down in the moment.

Can you help with this problem?

Provide an answer of your own, or ask Edmundo VN for more information if necessary.

To post a message you must log in.