Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Caret Position if a toolbar button is clicked
#3
If need caret coordinates, function GetCaretXY.
If need character position like EM_GETSEL in Edit and rich edit controls, try this:
Macro Macro2529
Trigger F8     Help - how to add the trigger to the macro
Code:
Copy      Help
spe 10
key CSH
str s.getsel
if(s.len) key R ;;restore caret position; this works differently in different windows
out s.len


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)