Jump to content
Sign in to follow this  
shx

getting a control id via autoit script

Recommended Posts

shx

I think that the question has been asked before but I have not found an answer.

Is there a a way of getting the controlid of an object via autoiit script.

I have a script that I want to create that would automate the installation of applications and I would like to record that information while I am installing the application

Thanks

Share this post


Link to post
Share on other sites
weaponx

Use the AutoIt Window Info tool to identify the controls while running your installation, you may be better of using classname and instance number because controlid's can vary across multiple executions of the same app.

Share this post


Link to post
Share on other sites
shx

you may be better of using classname and instance number because controlid's can vary across multiple executions of the same app.

Thanks weaponx, I didn't know the controlid could vary. Then there is something I do not understand. If controlid's can vary across multiple executions of the same app, then it would seem that it is useless and should never be used.

Are there rules that could help with the determination if it is static or not?

Steven

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.