Jump to content
Sign in to follow this  
sulley

C# and Windows Forms Control ClassNames

Recommended Posts

sulley

I want to use AutoIt for creating a Testing Tool for a C# Forms application. What I want to know is if the ClassNames on form controls remain static. I have tried to find this information on the Web but have not been able to track it down.

I have done some simple testing of moving controls and they seem to stay static. Has anybody got experience in doing this.

Thanks

Share this post


Link to post
Share on other sites
exodius

Do you actually have AutoIt installed yet? When you install AutoIt there's a "AutoIt Window Info" tool in the AutoIt Start Menu entry that will give all the info about your forms that AutoIt will be able to read natively.

That would give you your best bet.

Share this post


Link to post
Share on other sites
tmakruck

I've developed some AutoIt scripts against C# applications, and in general, Yes the control names stay the same. Unless the app is still under development (in an Agile environment). In this case, NEW controls could mess up your script. But from launch to launch of the SAME BUILD i've been quite successful in my efforts!

Good Luck!

- Todd

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.