AndrewBuchan 0 Posted January 9, 2011 Hi, I am trying to click a Button control on a Windows Form. The button is called btnViewOrders and the text is View , so how do I format my ControlClick? I will not always know the controlID, and even if I do it does not seem to work. Something like: ControlClick("Form2", "", "View") Any ideas? Share this post Link to post Share on other sites
Varian 8 Posted January 9, 2011 Is this a browser window? If so you need to utilize the IE functions or the FF functions. Share this post Link to post Share on other sites
timsta97 0 Posted January 9, 2011 (edited) If you don't know the control ID, you can always do something like "[TEXT: text]" in its place. Here is an example ControlClick("Form2", "", "[TEXT:View]") This is also in the help file, so before you post on the form, you may want to try to use that. Edited January 9, 2011 by timsta97 Share this post Link to post Share on other sites
Varian 8 Posted January 9, 2011 If you don't know the control ID, you can always do something like "[TEXT: text]" in its place. I have never seen that as a Property class...where is that located? I would find that very useful for future projects. Share this post Link to post Share on other sites
JohnOne 1,603 Posted January 9, 2011 You can use the window info tool located in your instal folder to gett the button class and instance. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites