Function Tooltip

  • Display a tooltip with the specified value at the specified position.

    The actual AU3_Tooltip function from AutoIt appears to be broken so it has been reimplemented here using the Windows User32 library.

    Parameters

    • value: string

      The text to display in the tooltip.

    • x: number = 0

      The x-coordinate of the tooltip position. Default is 0.

    • y: number = 0

      The y-coordinate of the tooltip position. Default is 0.

    • characterWidth: number = 200

      The maximum width of the tooltip in characters. Default is 200.

    • timeout: number = 2000

      The duration in milliseconds to display the tooltip. Default is 2000.

    Returns void

    import { Tooltip } from '@ahmic/autoit-js';

    Tooltip('Hello, World!', 100, 200, 50, 3000);
MMNEPVFCICPMFPCPTTAAATR