Prevent Hotstring Expanding when Type Hotstring + Number + EndChar

Get help with using AutoHotkey and its commands and hotkeys
GavinPen
Posts: 22
Joined: 24 Oct 2017, 16:49
GitHub: GavinPen

Prevent Hotstring Expanding when Type Hotstring + Number + EndChar

30 Jan 2019, 05:09

I'd like to prevent my hotstrings expanding when I type the hotstring, then a number, then an EndChar

eg one of my hotstrings is:
::gt::get
However, when I type 'gt1' then a space, the expansion is triggered, and gt1 is overwritten by 'get' (actually by 'gget').

Is there any way to avoid this?
GEV
Posts: 782
Joined: 25 Feb 2014, 00:50

Re: Prevent Hotstring Expanding when Type Hotstring + Number + EndChar

30 Jan 2019, 05:21

GavinPen wrote:
30 Jan 2019, 05:09
::gt::get
when I type 'gt1' then a space, the expansion is triggered, and gt1 is overwritten by 'get' (actually by 'gget').
This is not the normal behavior (try it in a stand-alone script). Something else is wrong in your script.
GavinPen
Posts: 22
Joined: 24 Oct 2017, 16:49
GitHub: GavinPen

Re: Prevent Hotstring Expanding when Type Hotstring + Number + EndChar

30 Jan 2019, 05:37

Oh, you're right - it does work in a standalone script.
I'll have to do some digging ...

Return to “Ask For Help”

Who is online

Users browsing this forum: arcticir, Bing [Bot], flyingDman, Google [Bot], Terminus_Est and 203 guests