Klaatu Posted November 27, 2007 Share Posted November 27, 2007 I looked over the help file about the controlID parameter and that you can use other forms to identify controls. From reading the help, I would think these statements would be equivalent: $hWnd = ControlGetHandle('Folder Options','','[CLASS: SysTreeView32; INSTANCE: 1]') $hWnd = ControlGetHandle('Folder Options','','[CLASSNN: SysTreeView321]') $hWnd = ControlGetHandle('Folder Options','','SysTreeView321') but apparently not, as the third one works, the first and second do not. What am I not understanding that the help file is telling me? My Projects:DebugIt - Debug your AutoIt scripts with DebugIt! Link to comment Share on other sites More sharing options...
weaponx Posted November 27, 2007 Share Posted November 27, 2007 (edited) You can't have spaces in the control match text (between the colon and the classname). You have CLASS: SysTreeView32 and INSTANCE: 1 See below: $hWnd = ControlGetHandle('Folder Options','','[CLASS:SysTreeView32; INSTANCE:1]') ConsoleWrite($hWnd & @CRLF) $hWnd = ControlGetHandle('Folder Options','','[CLASSNN:SysTreeView321]') ConsoleWrite($hWnd & @CRLF) $hWnd = ControlGetHandle('Folder Options','','SysTreeView321') ConsoleWrite($hWnd & @CRLF) Edited November 27, 2007 by weaponx Link to comment Share on other sites More sharing options...
Klaatu Posted November 27, 2007 Author Share Posted November 27, 2007 D'oh! My Projects:DebugIt - Debug your AutoIt scripts with DebugIt! 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