Capturing an element in the Menu Bar

Asked by Jonathan

I'm using Sikuli under Mac OS X.

At some point in my script I need to capture an item in the Menu Bar for a specific application --
     I want to click on the term "File" for the Disk Utility application, so I can then select "New" and then "Disk Image From Folder"

but when I attempt to do a "capture" the Sikuli IDE is in the Menu Bar.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Sergey Darovskih
Solved:
Last query:
Last reply:
Revision history for this message
Best Sergey Darovskih (darovskih) said :
#1

at least you can screenshot by yourself and then use "insert an image" button in Sikuli IDE

Revision history for this message
Phat W. (cp-gphone) said :
#2

The way to achieve this is to change the screen shot shortcut for Sikuli to a combination that would not cause other menus to open up or switch applications. Also, it helps to click and hold open the menu you would like to screen shot then use your shortcut key combination.

I do not have a Mac that will allow me to give you a exact answer but hopefully this helps.

Revision history for this message
Jonathan (jonathan-boppazu) said :
#3

Thanks Sergey Darovskih, that solved my question.