Sign in to follow this  
Followers 0
StephenSr

Changing ControlID

4 posts in this topic

#1 ·  Posted (edited)

Is there a way to deal with a changing control ID?

I got a update program from a vendor and of course they use a custom installer to install the update;

most of my code is just the send command to send enter, but the last screen has a check box that is checked by default to start the program, and I want to uncheck it. I have tried to use the controlID and it seems to be changing????? Any Idea's?

Edited by StephenSr

Share this post


Link to post
Share on other sites



Is there a way to deal with a changing control ID?

I got a update program from a vendor and of course they use a custom installer to install the update;

most of my code is just the send command to send enter, but the last screen has a check box that is checked by default to start the program, and I want to uncheck it. I have tried to use the controlID and it seems to be changing????? Any Idea's?

you can do Mouseclick("LEFT", $xcoord,$ycoord) if the window doesnt move.

Share this post


Link to post
Share on other sites

Is there a way to deal with a changing control ID?

I got a update program from a vendor and of course they use a custom installer to install the update;

most of my code is just the send command to send enter, but the last screen has a check box that is checked by default to start the program, and I want to uncheck it. I have tried to use the controlID and it seems to be changing????? Any Idea's?

You don't have to use ControlID.

This description can be used to identify a control by the following properties:

ID - The internal control ID. The Control ID is the internal numeric identifier that windows gives to each control. It is generally the best method of identifying controls. In addition to the AutoIt Window Info Tool, other applications such as screenreaders for the blind and Microsoft tools/APIs may allow you to get this Control ID

TEXT - The text on a control, for example "&Next" on a button

CLASS - The internal control classname such as "Edit" or "Button"

CLASSNN - The ClassnameNN value as used in previous versions of AutoIt, such as "Edit1"

REGEXPCLASS - Control classname using a regular expression

X \ Y \ W \ H - The position and size of a control.

INSTANCE - The 1-based instance when all given properties match.


I can do signature me.

Share this post


Link to post
Share on other sites

I will give these a try and see what happens.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0