Screen reading contextual menus
Screen reading contextual menus
- Subject: Screen reading contextual menus
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 19 Mar 2003 11:40:01 -0500
I can successfully read a menu item in a contextual menu on the screen with
AXUIElementCopyElementAtPosition. However, contextual menus disappear the
moment you click on anything else on the screen. I therefore expected to be
unable to use other functions afterwards -- for example, to obtain the menu
item's attributes.
To my surprise, however, I am sometimes able to read the attributes even
though the contextual menu is no longer visible. This appears to work mainly
in Cocoa applications (Project Builder, for example, although not in
TextEdit). I haven't found a Carbon application in which it works.
What accounts for the fact that this sometimes works? Is it peculiar to the
cocoa implementation of accessibility?
Is there a way to work around the disappearance of the contextual menu in
Carbon applications? I don't need to perform actions on them; I just want to
let the user browse what was there while the contextual menu was open. I
guess I could cache everything, but that would be a lot of work.
--
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
_______________________________________________
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.