Jump to content

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


anks
 Share

Recommended Posts

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...

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

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...