Jump to content

FilipL

Members
  • Posts

    5
  • Joined

  • Last visited

FilipL's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Thanks Zedna and ioa747. With understanding how the "SysTreeView321" is define, I can get further now. Thank you to enlighten me.
  2. Found it, thank you. Each SysList32x view gets an x where the x indicated the one that is currently active. By first navigating to the correct window with keypresses and making this one active, i can address the SysList321 and now I have it. Super, thank you.
  3. My problem lies in the correct setting of the _TreeView_GetAll (or ControlGetHandle) parameters. When Specifying 'Monitor' instead of 'OLE/COM Object viewer' then the routine works, but the content of the wrong SysTreeView322 is shown. The program I want to automate, which I only use, has multiple SysTreeView windows, each with the same ID. All are packed in a control, and these ones are different. By using keystrokes I am able to direct the ControlTreeView to the correct TreeView, but I do not know how to do this for the ControlGetHandle. When I use the second parameter, the result is empty. When I set the ID of the control above the treeview in the third parameter, the result is empty. No idea how this should work.
  4. I saw these examples, but am I wrong that first the treeview is being build before using it. Here you have the handle to the tree, but I do seem to succeed to get the handle of the object found in the ControlTreeView. Some example MsgBox(0, "Nr. of items: ", ControlTreeView("Monitor","" ,"" ,"GetItemCount","#0|<Preferences>|interface")) This returns 2 items found. I have taken the code you pointed to, but I do not see the interfaces, which are named "interface" and "interface1". Here I am lost: local $str $TV010 = ControlGetHandle ("Monitor", "", "") for $1 = 0 to _GUICtrlTreeView_GetCount($TV010) $str &= stringformat( 'Text = %-15s Child Switch = %-5s CTLID = %03i Parent CTLID = %03i Parent Handle = %-8s Sibling Count = %03i Child Count = %03i', _ _GUICtrlTreeView_GetText($TV010, $1), _ _GUICtrlTreeView_GetChildren($TV010,$1), _ _GUICtrlTreeView_GetItemParam($tv010,$1), _ _GUICtrlTreeView_GetParentParam($TV010,$1), _ _GUICtrlTreeView_GetParentHandle($TV010,$1), _ _GUICtrlTreeView_GetSiblingCount($TV010,$1), _ _GUICtrlTreeView_GetChildCount($TV010,$1) ) & @lf next ConsoleWrite($str & @LF)
  5. I am trying to loop through a branch of a Treeview. When I use the ControlTreeView with the option GetItemCount, it returns 2, being there are 2 items, which is correct. What I can not figure out is how I can loop through these items and select them one by one. I am new to AutoIT so this question can be a low brainer, but do not get any further for the moment.
×
×
  • Create New...