Sign in to follow this  
Followers 0
anks

How to get the control id in "ControlGetHandle" function.

3 posts in this topic

Hi All,

Actually i was trying to automate a desktop application. I had to use the function:

ControlGetHandle ( "title", "text", controlID )

I was able to find the title and text using the AUTOIT Spy named "AUTOIT Window info", but how should i get the controlID of the objects. I have to get the controlID for a tree view object.

Anyone please help me.

Thanks...

Share this post


Link to post
Share on other sites



If you have the handle of the control, all the native AutoIt functions and most UDFs will accept that in place of the CtrlID. But, if you want to get the CtrlID from the handle use _WinAPI_GetDlgCtrlID(). See help file.

:(


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

If you have the handle of the control, all the native AutoIt functions and most UDFs will accept that in place of the CtrlID. But, if you want to get the CtrlID from the handle use _WinAPI_GetDlgCtrlID(). See help file.

:(

@PsaltyDS,

I was using the old version of AUTOIT, i upgraded my AUTOIT, and used the AUTOIT V3 Window Info, and this tool gives me the ControlID.

Thanks for the reply.

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