anks Posted March 30, 2010 Share Posted March 30, 2010 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 More sharing options...
PsaltyDS Posted March 30, 2010 Share Posted March 30, 2010 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 More sharing options...
anks Posted March 31, 2010 Author Share Posted March 31, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now