#include <GUIToolTip.au3>
#include <WinAPITheme.au3>
#include <WinAPIGdiInternals.au3>
HotKeySet("{ESC}", _Exit)
Global $hFont = _WinAPI_CreateFont(40, 0)
Example()
Func Example()
ToolTip("Tooltip Test", -100, -100, Default, 0, 1) ; hide it from view
Local $pos, $hWnd = WinWait("Tooltip Test")
_WinAPI_SetWindowTheme($hWnd, "", "")
_GUIToolTip_SetTipTextColor($hWnd, 0xFFFFFF)
_GUIToolTip_SetTipBkColor($hWnd, 0x000000)
_WinAPI_SetFont($hWnd, $hFont)
ToolTip("Tooltip Test", Default, Default, Default, 0, 1)
While Sleep(50)
$pos = MouseGetPos() ; this is faster
WinMove($hWnd, "", $pos[0], $pos[1] + 20)
WEnd
EndFunc ;==>Example
Func _Exit()
_WinAPI_DeleteObject($hFont) ; this is needed
Exit
EndFunc ;==>_Exit