Function Reference


TraySetToolTip

(Re)Sets the tooltip text for the tray icon.

TraySetToolTip ( [text] )

Parameters

text [optional] The new text to be displayed as tooltip. The length is limited - see Remarks.

Return Value

Success: 1.
Failure: 0.

Remarks

The tooltip length is limited to 128 characters.

To reset the tooltip to the default text, use the function with no parameters TraySetToolTip().

The tooltip text is only changed when the tray icon is visible!

Related

TrayTip

Example

#NoTrayIcon
#include <TrayConstants.au3>

Example()

Func Example()
        TraySetState($TRAY_ICONSTATE_SHOW) ; Show the tray menu.
        TraySetToolTip("An example of a tray menu tooltip.") ; The tray menu icon must be shown before we can set some text.

        While 1
                Sleep(100) ; An idle loop.
        WEnd
EndFunc   ;==>Example