Jdavis22 Posted December 9, 2024 Posted December 9, 2024 Hi, I'm trying to read the tool tips on an existing SysTreeView32 class. Is there a command in ControlTreeView that will retrieve the current tool tip? $hSTV1 = ControlGetHandle($hWnd, "", "[CLASS:SysTreeView32;INSTANCE:3]") ; get the tree The above code gets a valid handle and the below code displays the text for the 2 items. That works ok. MsgBox($MB_SYSTEMMODAL, "Title","a " & ControlTreeView($hWnd,"", $hSTV1, "getText","#0")) MsgBox($MB_SYSTEMMODAL, "Title","b " & ControlTreeView($hWnd,"", $hSTV1, "getText","#1")) Any hints on what I should try next to get the existing tool tip text? PS I tried using WinList("[CLASS:tooltips_class32]") but that did not return any results. Thanks, Jared
ioa747 Posted December 9, 2024 Posted December 9, 2024 look at _GUICtrlTreeView_GetToolTips maybe it helps to forum I know that I know nothing
Jdavis22 Posted December 9, 2024 Author Posted December 9, 2024 Thanks for the reply. It is an existing tree not created using the _GUICtrlTreeView family. I tried this , it returned 0 which I think means "control is not using tool tips." But there are tool tips. $hSTV1 = ControlGetHandle($hWnd, "", "[CLASS:SysTreeView32;INSTANCE:3]") $firstH = _GUICtrlTreeView_GetFirstItem ( $hSTV1 ) MsgBox($MB_SYSTEMMODAL, "Title","m " & _GUICtrlTreeView_GetToolTips ($firstH))
ioa747 Posted December 9, 2024 Posted December 9, 2024 31 minutes ago, Jdavis22 said: It is an existing tree not created using the _GUICtrlTreeView family. it works the same way put ConsoleWrite to control the flow you have a value in $firstH ? you have a value in $Text ? you have a value in $hTooltip? ... and so on $hSTV1 = ControlGetHandle($hWnd, "", "[CLASS:SysTreeView32;INSTANCE:3]") ConsoleWrite("$hSTV1=" & $hSTV1 & @CRLF) $firstH = _GUICtrlTreeView_GetFirstItem ( $hSTV1 ) ConsoleWrite("$firstH=" & $firstH & @CRLF) $Text = _GUICtrlTreeView_GetText($hSTV1, $firstH) ConsoleWrite("$Text=" & $Text & @CRLF) $hTooltip = _GUICtrlTreeView_GetToolTips ($firstH) ConsoleWrite("$hTooltip=" & $hTooltip & @CRLF) if not, try with the directive #AutoIt3Wrapper_UseX64=y (if you have it installed the SciTE4AutoIt3.exe ) I know that I know nothing
Jdavis22 Posted December 9, 2024 Author Posted December 9, 2024 Thanks again. I did not know that. I'm running it from cmd box using autoid3_x64.exe, so consoleWrite does not work for me. I just use a msgbox for now. Everything is valid except the GetToolTips returns 0x0000...
ioa747 Posted December 9, 2024 Posted December 9, 2024 (edited) then it simply doesn't exist Edited December 9, 2024 by ioa747 I know that I know nothing
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