paulpmeier Posted July 26, 2023 Posted July 26, 2023 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)
ioa747 Posted July 26, 2023 Posted July 26, 2023 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
VADemon Posted October 6, 2023 Posted October 6, 2023 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.
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