Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

ControlID TEXT help

$
0
0
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??

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>