sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26316
Re: [Question #250067]: Menus in the Mac OS Menu Bar as targets
Question #250067 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250067
Status: Open => Answered
RaiMan proposed the following answer:
@ 1: open the menu and use the capture hotkey (look Preferences: Mac:
cmd-shift-2)
@ 2: not clear what you mean.
@ 3: use capture hotkey and use a region.find() in the menu area
Generally: When operating a GUI, one should try to use keyboard actions
as often as possible.
Your case:
switchApp(yourApp) # to get it to foreground
type(Key.F2, Key.CTRL) # to activate the menubar
type("f") # to position on file menu
type(Key.DOWN) # to open it
if you know the position of the menu item just use more Key.DOWN to get to it.
Or use characters to position on a specific menu.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.