Relocate cursor position after hotstring replacement

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
DevinC
Posts: 10
Joined: 01 Sep 2016, 15:11

Relocate cursor position after hotstring replacement

17 Jan 2018, 17:28

Hello,

I have created the hotstring :

:*oR:fromto::{from: to:}

When using the hotstring "fromto", it would replace as expected with cursor at end of string. Is it possible to re-define where the cursor should be after string replacement? For example, I'd the cursor to be relocated to start typing at end of "from:".

In other word, relocate cursor position to after string replacement :

{from:[[[start typing here]]] to:}

Thanks,

Devin
Odlanir
Posts: 659
Joined: 20 Oct 2016, 08:20

Re: Relocate cursor position after hotstring replacement

17 Jan 2018, 17:38

like this ?

Code: Select all

:*oR:fromto::
sendraw {from: to:}
send {left 5}
return
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: CaseyMoon and 329 guests