Oops. That first line should read
If accObj.State.Value = state_SYSTEM_CHECKED Then

On 12/9/2009 10:30 PM, Stephen Clower wrote:
J.J.,

If you're looking at the menu through MSAA, you might test for something like:

Set accObj = FocusedWindow.Accessible ' Assuming the focused window is a menu, set the accObj variable to hold the Accessible representation of the focused item.
If accObj.State = state_SYSTEM_CHECKED Then
' item is checked.
Else
' It isn't.
End If

Hope this helps.
Steve



On 12/9/2009 10:22 PM, J.J. Meddaugh wrote:
Hello. I was wondering if someone could point me in the right direction of how to obtain the state of a checkbox that's inside of a standard application menu? I was looking all over the script manual, but apparently not hard enough.
Thanks.
J.J. Meddaugh - ATGuys.com
A premier Licensed Code Factory and KNFB Reader distributor


Reply via email to