Page 1 of 1

How do I specify a cursor position in an AutoHotKey snippet?

Posted: 29 Dec 2018, 11:03
by Kosarar
How do I specify a cursor position in an AutoHotKey snippet? For example:

::hkr::
Send,
(
Hello,

__cursorhere()

Kind regards,
Constantine
)
return

Re: How do I specify a cursor position in an AutoHotKey snippet?

Posted: 31 Dec 2018, 01:38
by Delta Pythagorean
I can only assume you mean by MouseMove

Re: How do I specify a cursor position in an AutoHotKey snippet?

Posted: 31 Dec 2018, 01:57
by jeeswg
You can specify the caret position by sending arrow keys. Cheers.

Code: Select all

::hkr::
Send,
(
Hello,



Kind regards,
Constantine{Up 3}
)
Here's some alternative code.

Code: Select all

::hkr::
Send,
(
Hello,{Enter 3}
Kind regards,
Constantine{Up 3}
)