Jump to content

Recommended Posts

Posted

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

Posted

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
Posted

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.

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
×
×
  • Create New...