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

Get help with using AutoHotkey and its commands and hotkeys
Kosarar
Posts: 1
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: 567
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

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].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.18362
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Delta#3324

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
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”

Who is online

Users browsing this forum: boiler, Karrsen, Kolo, mikeyww, Paiter, solidsnake_fear, Xtra and 32 guests