Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get position of cursor
#10
Macro Macro1408
Trigger F12     Help - how to add the trigger to the macro
Code:
Copy      Help
act win("Microsoft Word" "OpusApp")
1.5 ;;wait 1.5 s because Word does not give caret pos for 1 s after window activation

int x y h
h=GetCaretXY(x y 0 0 1) ;;the 1 makes the returned pos relative to the client area of h
if(!h) mes- "Failed."
out "%i %i" x y


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)