The text to display in the tooltip.
The x-coordinate of the tooltip position. Default is 0.
The y-coordinate of the tooltip position. Default is 0.
The maximum width of the tooltip in pixels. Default is 400.
The duration in milliseconds to display the tooltip. Default is 2000.
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.NOTE: While this function is primarily asynchronous, it uses the synchronous variants of some of the Win32 functions as the async variants cause undefined behaviour where the promises never resolve. These functions are quite fast and tooltips are unlikely to be used extensively so this should not cause any issues (famous last words...). The Sleep call is still asynchronous, so the tooltip will not block the event loop while it is displayed, only during creation and destruction of the tooltip window. If you run into any issues with this, please open an issue!