Code: Select all
#SingleInstance
#Requires AutoHotkey v2+
CoordMode 'CaretGetPos', 'Screen'
!^q::
{
If CaretGetPos(&mbx, &mby)
msgbox 'caret Pos ' mbx 'x, ' mby 'y'
else
MsgBox 'no caret 4 U'
}
CaretGetPos does appear to be listed in the docs here though.... Do I have a typo in there??Error: Parameter #1 of CoordMode is invalid.
Specifically: CaretGetPos
004: CoordMode('ToolTip', 'Screen')
▶ 005: CoordMode('CaretGetPos', 'Screen')
008: {
009: If CaretGetPos(&mbx, &mby)