ute_man Posted August 3, 2019 Posted August 3, 2019 Hi forum, I have been trying to click a button using my code but unfortunately it is not very straightforward as Au3Info or SimpleSpy do not show the button properties. However, I have used a trial version of "TestComplete" and the screen is attached. ControlClick ( "title", "text", controlID [, button = "left" [, clicks = 1 [, x [, y]]]] ) Now my question is what are the "title" and "controlID" parameters that I can use in ColtrolClick() command from perhaps "FullName" field (or any other field) shown in the picture and written below. FullName = Sys.Process("pcsam").Window("TkTopLevel", "Parameter data", 1).Window("TkChild", "", 1).Window("TkChild", "", 1).Window("TkChild", "", 4) Thank you all.
Earthshine Posted August 3, 2019 Posted August 3, 2019 (edited) Comparing auto ID to test complete is like comparing a Ford focus to a supercar you just can’t do it If autoit can’t see the control you use UIAutomation instead The simple spy tool doesn’t need those parameters to work with uiautomation Edited August 3, 2019 by Earthshine My resources are limited. You must ask the right questions
ute_man Posted August 3, 2019 Author Posted August 3, 2019 Hi Earthshine, Thank you so much for the reply. I am sorry, it looks like my English expression was not good, it was never my intention to compare anything. I just wanted to highlight the fact that Au3Info or SimpleSpy did not provide the "title" and "controlID" and hence I had to use TestComplete as I was so desperate. All what I wanted to know is what is the "title" and "controlID" values that I have to use in my ControlClick() command. I do not understand the output of TestComplete. Please help. Thanks again Earthshine.
Earthshine Posted August 3, 2019 Posted August 3, 2019 Control click will not work on the controls that you want to manipulate you need to learn how to use UiAutomation correctly My resources are limited. You must ask the right questions
ute_man Posted August 3, 2019 Author Posted August 3, 2019 Thanks again Earthshine, much appreciated, now I can stop wasting my time anymore - I believe that I tried it for more than half a day. - lol I will start learning about UiAutomation. Have a great week-end Earthshine !!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now