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

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Kosarar
Posts: 3
Joined: 29 Dec 2018, 07:54

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

29 Dec 2018, 11:03

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

::hkr::
Send,
(
Hello,

__cursorhere()

Kind regards,
Constantine
)
return
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

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

31 Dec 2018, 01:38

I can only assume you mean by MouseMove

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

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

31 Dec 2018, 01:57

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}
)
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Cerulium, Spikea, Tvlao and 146 guests