Shows an always-on-top window anywhere on the screen.
ToolTip Text, X, Y, WhichToolTip
Type: String
If blank or omitted, the existing tooltip (if any) will be hidden. Otherwise, specify the text to display in the tooltip. To create a multi-line tooltip, use the linefeed character (`n) in between each line, e.g. "Line1`nLine2"
.
If Text is long, it can be broken up into several shorter lines by means of a continuation section, which might improve readability and maintainability.
Type: Integer
If omitted, the tooltip will be shown near the mouse cursor. Otherwise, specify the X and Y position of the tooltip relative to the active window's client area (use CoordMode "ToolTip"
to change to screen coordinates).
Type: Integer
If omitted, it defaults to 1 (the first tooltip). Otherwise, specify a number between 1 and 20 to indicate which tooltip to operate upon when using multiple tooltips simultaneously.
Type: Integer
If a tooltip is being shown or updated, this function returns the tooltip window's unique ID (HWND), which can be used to move the tooltip or send Tooltip Control Messages.
If Text is blank or omitted, the return value is zero.
A tooltip usually looks like this:
If the X and Y coordinates caused the tooltip to run off-screen, or outside the monitor's working area on Windows 8 or later, it is repositioned to be entirely visible.
The tooltip is displayed until one of the following occurs:
A GUI window may be made the owner of a tooltip by means of the OwnDialogs option. Such a tooltip is automatically destroyed when its owner is destroyed.
CoordMode, TrayTip, GUI, MsgBox, InputBox, FileSelect, DirSelect