Jump to content

Recommended Posts

Posted

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.

image.thumb.png.c574eb5094afaf97dff5f86753a9f90a.png

Posted (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 by Earthshine

My resources are limited. You must ask the right questions

 

Posted

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.

Posted

 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

 

Posted

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 !!!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...