So, hier ein Beispiel mit _GUIToolTip:
AutoIt
#include <GUIConstantsEx.au3>
#include <GUIToolTip.au3>
#include <ToolTipConstants.au3>
; Max. Time to display the Tooltip (10 seconds)
$iToolTipMaxDisplayTime = 10000
$hGUIMain = GUICreate("TestToolTip", 810, 839, 100, 100)
; Select the icon to use for the Tooltip
$idIcon1 = GUICtrlCreateIcon("shell32.dll", 24, 125, 38, 22, 22)
$hIcon1 = GUICtrlGetHandle($idIcon1)
$hToolTip1 = _GUIToolTip_Create($hGUIMain, BitOR($TTS_CLOSE, $TTS_BALLOON))
_GUIToolTip_SetMaxTipWidth($hToolTip1, 400)
_GUIToolTip_SetDelayTime($hToolTip1, $TTDT_AUTOPOP, $iToolTipMaxDisplayTime)
_GUIToolTip_AddTool($hToolTip1, 0, "Test.", $hIcon1, Default, Default, Default, Default, BitOR($TTF_SUBCLASS, $TTF_IDISHWND, $TTF_CENTERTIP))
_GUIToolTip_SetTitle($hToolTip1, "Testitel", $TTI_INFO)
GUISetState(@SW_SHOW)
; Move the mouse to the Icon Coordinate so the Tooltip gets displayed
Opt("MouseCoordMode", 0)
MouseMove(135, 70, 0)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
; Destroy the tooltip control
_GUIToolTip_Destroy($hToolTip1)
GUIDelete($hGUIMain)
Alles anzeigen