Hello!
I have been trying to get AutoIt to read tooltip text from a Chromium based browser (Yandex broswer, to be precise). I'm 99% sure that this testing code was working on Windows 7, but after updating to Win10 something went wrong. Here's the testing code I am using.
#include <GUIToolTip.au3>
HotKeySet("{ESC}", "Close")
Example()
Func Example()
While 1
Sleep(100)
_Read_Tip()
WEnd
EndFunc
Func _Read_Tip()
Local $aTipList = WinList("[CLASS:tooltips_class32]")
Local $aRet
For $i = 1 To $aTipList[0][0]
If WinGetProcess($aTipList[$i][1]) = WinGetProcess("[ACTIVE]") Then
$aRet = _GUIToolTip_GetCurrentTool($aTipList[$i][1])
If $aRet[8] <> "" Then MsgBox(0, "Visible Tip", $aRet[8])
EndIf
Next
EndFunc
Func Close()
Exit
EndFunc
This code does catch some of the other programmes' tooltips though. I think the source of the problem that some tooltips are not actually windows of class "tooltips_class32" (for instance, Total Commander's tooltips). How does one intercept such tooltips? I tried to catch them with Au3Info, UIASpy without success.
I have tried tons of different browsers and they all seem to be working same way. With the exception of IE11, but for some reason it won't open the page I'm trying to automate.