Jump to content

Recommended Posts

Posted

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!
Posted (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 by weaponx

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