C# and Windows Forms Control ClassNames

3 posts in this topic

sulley 0

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 1

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 0

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!