Greetings!
I'm trying to interact with a button on a form using the ControlCommand Function. All I want to do is see if this button is enabled or not. The button's text is "&Find" as determined by the window info tool and by ControlGetText.
In testing, this works fine when I use this command (i.e. I get the expected 1 or 0):
ControlCommand("Find - Account","","[CLASS:TRT6CommandButton; INSTANCE:3; ]","IsEnabled","")
However, I would really like to get this function working by also specifying the TEXT command, but I can't seem to get it to work. This is the code that I use that always returns 0, like it's not seeing the button.
ControlCommand("Find - Account","","[CLASS:TRT6CommandButton; INSTANCE:3; TEXT:&Find ]","IsEnabled","")
Does anyone have any idea why I can't get the TEXT parameter to work??
I'm trying to interact with a button on a form using the ControlCommand Function. All I want to do is see if this button is enabled or not. The button's text is "&Find" as determined by the window info tool and by ControlGetText.
In testing, this works fine when I use this command (i.e. I get the expected 1 or 0):
ControlCommand("Find - Account","","[CLASS:TRT6CommandButton; INSTANCE:3; ]","IsEnabled","")
However, I would really like to get this function working by also specifying the TEXT command, but I can't seem to get it to work. This is the code that I use that always returns 0, like it's not seeing the button.
ControlCommand("Find - Account","","[CLASS:TRT6CommandButton; INSTANCE:3; TEXT:&Find ]","IsEnabled","")
Does anyone have any idea why I can't get the TEXT parameter to work??