Jump to content

C# and Windows Forms Control ClassNames


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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