I don't want to use the arrow key. ie: SendInput, {Left 2}
I want to literally stop the caret from moving.
2 reasons for that,
1. Move the caret back is too slow.
2. It might not move the caret back to its position in some case
(eg: when you press Enter in some code editor, because of auto indent, move back once will not be back at the original position.)
The code may be something like this::
Code: Select all
^+1::
SendInput, AA*
stopCaret() ; now the Caret should stop right after *, when this script is finished
SendInput, BB
return
^+2::
stopCaret() ; the Caret should stop at its original position, the thing you pasted should be after it
SendInput, ^v
return