Thanks Steve:
Rick USA

-----Original Message-----
From: Steve Clower [mailto:[email protected]] 
Sent: Monday, March 23, 2015 12:15 PM
To: Rick Thomas; Window-Eyes Scripting List
Subject: Re: MenuItem Selection

Rick,

Hook MSAA.OnObjectFocus, and check if your Accessible object's role is
role_SYSTEM_MENUITEM. If it is, then that's your most recently focused menu
item.

Regards,
Steve


On 3/23/2015 12:10 PM, Rick Thomas via Scripting wrote:
> Hi: Anyone know a nice way to tell which MenuItem is selected?
>
> In Visual Studio I can select a MenuItem by arrowing down the list and 
> hitting enter or by typing the hot key, "I" in the case of the ErrorList.
>
> I have a couple of ideas but they seem sort of clumbsy if there is a 
> Best Practices WE ObjectModel way of doing this.
>
> I am guessing someone has worked with menus and found a solid 
> methodology.Do you use the keyboard events, the window events or what?
>
> Rick USA
>
>   
>
> -------------- next part -------------- An HTML attachment was 
> scrubbed...
> URL: 
> <http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/at
> tachments/20150323/0e10afc3/attachment.htm>
> _______________________________________________
> Any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Ai Squared.
>
> For membership options, visit
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/sclower%4
0aisquared.com.
> For subscription options, visit 
> http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
> List archives can be found at 
> http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com
>


_______________________________________________
Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Ai Squared.

For membership options, visit 
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com.
For subscription options, visit 
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at 
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com

Reply via email to