• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Menu actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Menu actions
      • From: Eric Schlegel <email@hidden>
  • Prev by Date: Zero children
  • Next by Date: NSAccessibilityCancelAction constant missing
  • Previous by thread: Re: Zero children
  • Next by thread: Re: Menu actions
  • Index(es):
    • Date
    • Thread