# 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: | Returns 1.
Failure: | Returns 0.

Remarks

!!! In Windows 95/98/NT4 the length of the tooltip text is limited to 64 characters, in Windows Me/2000/XP/2003 it 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

#Include <Constants.au3>
#NoTrayIcon
TraySetState()
TraySetToolTip("This is my new tooltip text!")
While 1
Sleep(10) ; Idle loop
WEnd
Exit