Is it possible to determine whether a menu item is grayed-out or not and then act accordingly? (i.e. perform Action 1 if the specified menu entry is not grayed out, or Action 2 if the specified menu item is grayed-out / disabled).
By the way, I'm talking about standard application menus and context menus, not menus that were created using AHK.
Thanks
Grayed-out menu item
Re: Grayed-out menu item
ControlGet does not work for individual menu entries (or at least I don't know how to use it for that). In fact Window Spy doesn't even show a control for a whole menu or context menu (never mind an individual menu entry) so there is no control id to check in the first place.
An alternative method seems to be required (I dunno, maybe using com or something) but that kind of thing is well beyond my pay grade.
An alternative method seems to be required (I dunno, maybe using com or something) but that kind of thing is well beyond my pay grade.