Sikuli unable to capture image on the menu bar

Asked by RapTop

After the setup and installation, I am able to run Sikulix on my mac 10.10.2. Everything works fine, except when I need to capture action on top of screen - menu bar. I am unable to capture anything on the menu bar. However, I saw the tutorial on the documentation that Sikuli is able to capture images on the menu bar. Here is the link to it
http://sikulix-2014.readthedocs.org/en/latest/tutorials/helloworld/helloworld-mac.html

I am unable to click on the magnifier glass or anything on the menu bar. please guide me through this.

Question information

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

problem since OS X 10.8:
menubar is always on top.

to capture something on the bar:
start left very near below and drag top right.

or use Mac's own capture tool (shift-cmd-4) and load the image into the IDE with the top left middle button.

or use type(Key.SPACE, Key.CMD)
to open spotlight.

But this example does not work anyway, since spotlight is changed in 10.10 ;-)

Revision history for this message
RapTop (fl415171114) said :
#2

I tried the second option and here is the error with it. I am trying to click on dropbox element on the menu bar.

[error] script [ iOSapp ] stopped with error in line 1
[error] FindFailed ( can not find dropbox.png in R[0,0 1440x900]@S(0) )

But first option works perfectly! thx!

Revision history for this message
RapTop (fl415171114) said :
#3

Another suggestion, maybe mention this tutorial doesn't work anymore or create another new tutorial? since not much people use 10.7 or lower.

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

good suggestion ;-)

Feel free to create and document a running version for 10.10.

You can fork the github project and create pull requests.

I have other priorities currently.