Sets coordinate mode for various commands to be relative to either the active window or the screen.
|CoordMode, ToolTip|Pixel|Mouse|Caret|Menu [, Screen|Relative]|
ToolTip: Affects ToolTip.
Menu: Affects the "Menu Show" command when coordinates are specified for it.
If Param2 is omitted, it defaults to Screen.
Screen: Coordinates are relative to the desktop (entire screen).
Relative: Coordinates are relative to the active window.
If this command is not used, all commands except those documented otherwise (e.g. WinMove and InputBox) use coordinates that are relative to the active window.
Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).
MouseMove, MouseClick, MouseClickDrag, MouseGetPos, PixelGetColor, PixelSearch, ToolTip, Menu
; Place ToolTips at absolute screen coordinates:
CoordMode, ToolTip, Screen
; Same effect as the above: