Jump to content

Recommended Posts

Posted

Not always, but in some cases, e.g. with "AutoIt Help (v3.3.16.1)". Why?

#include <GuiTreeView.au3>
Local $hTreeView = ControlGetHandle("AutoIt Help (v3.3.16.1)", "", "SysTreeView321")
;Local $hTreeView = ControlGetHandle("SciTE4AutoIt3", "", "SysTreeView321") ; works correctly
Local $hFirstItem = _GUICtrlTreeView_GetFirstItem($hTreeView)
ConsoleWrite(_GUICtrlTreeView_GetText($hTreeView, $hFirstItem) & @CRLF)

 

Posted

It works fine for me

#include <GuiTreeView.au3>

Local $hTreeView = ControlGetHandle("AutoIt Help (v3.3.16.1)", "", "SysTreeView321")
ConsoleWrite("$hTreeView=" & $hTreeView & @CRLF)

;Local $hTreeView = ControlGetHandle("SciTE4AutoIt3", "", "SysTreeView321") ; works correctly
Local $hFirstItem = _GUICtrlTreeView_GetFirstItem($hTreeView)
ConsoleWrite(_GUICtrlTreeView_GetText($hTreeView, $hFirstItem) & @CRLF)

 

for it to work, the contents tab must be active


tip
to see if it catches the handle correctly add
ConsoleWrite("$hTreeView=" & $hTreeView & @CRLF)

I know that I know nothing

  • 2 months later...
Posted

Thanks to you both for a very simple example and question. I had the exact same issue, _GetText and other like ControlTreeView did not return a text.

Updating from AutoIt 3.3.16.0 to 3.3.16.1 solved the issue for me. No reboot was required.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...