Sign in to follow this  
Followers 0
LOBOMINATOR

Enumerate Controls

3 posts in this topic

#1 ·  Posted (edited)

Hello

I'm currently testing an application with AutoIt. But I have the following problem:

The controls (textbox etc.) cannot be identified by the ID tag, because this is prone to changes. Is there a way to enumerate all the controls on the currently active window (to receive all the handles for the controls?)

See my other post: http://www.autoitscript.com/forum/index.php?showtopic=14323

Thanks for you help

Daniel

Edited by LOBOMINATOR

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You must use EnumChildWindows API with CallBack function.

Look at example for DllCallbackRegister() in AutoIt helpfile.

OH sorry now I noticed it's in ActiveX/COM section.

I think this will not be possible in ActiveX/COM DLL. But in pure AutoIt it should be no problem.

Edited by Zedna

Share this post


Link to post
Share on other sites

Hello

I used the EnumChildWindow Apicalls over PInvoke in C#. But this won't return the components/controls of a window? Or am I incorrect?

Thanks for your help

Daniel

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