Menu actions
Menu actions
- Subject: Menu actions
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 12 Nov 2002 13:01:23 -0500
When I attempt to perform a Pick or Press action on a menu or menu item when
the application is not frontmost, AXUIElementPerformAction returns
kAXErrorSuccess. But the menu doesn't actually open, and the menu item isn't
actually performed, because the target application isn't frontmost.
Shouldn't I get an error instead of kAXErrorSuccess?
And while I'm on the subject of menus and menu actions, why do they support
both the Pick and the Press action? They seem to do the same thing.
And how do I close an AXMenu UIElement once I've picked it? If I send it a
Cancel action, it closes, but there is an extra flash so that it looks as if
it was opened and closed twice in a row, rapidly. And there seems to be a
timing problem, in that sending Cancel immediately after Pick sometimes
doesn't close the menu.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.