max abbreviation length 40 Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Xtendera
Posts: 9
Joined: 06 Jul 2020, 22:29

max abbreviation length 40

07 Jul 2020, 12:52

Hello, so I was doing a really long abbreviation when I came up with this error
Hotstring max abbreviation length 40.

And the hotstring was 44 characters. Any way to bypass this? :wtf:
BoBo
Posts: 3852
Joined: 13 May 2014, 17:15

Re: max abbreviation length 40

07 Jul 2020, 13:50

Never ever saw a Hotstring > 40 characters. Would you mind to show yours? Thx :)
User avatar
flyingDman
Posts: 869
Joined: 29 Sep 2013, 19:01

Re: max abbreviation length 40

07 Jul 2020, 14:33

it can be reproduced:

Code: Select all

::12345678901234567890123456789012345678901::this is too long
The question is, why so long?
BoBo
Posts: 3852
Joined: 13 May 2014, 17:15

Re: max abbreviation length 40

07 Jul 2020, 15:09

The question is, why so long?
Exactly! That's why I wanna see it :D Obviously something really special :silent:
Rohwedder
Posts: 3636
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: max abbreviation length 40  Topic is solved

07 Jul 2020, 15:14

Hallo,
cut your long abbreviations in half:

Code: Select all

:*X:123::Code := 1
:*X:456::Send,% (Code = 1)?"1.Hotstring":
:*X:abc::Code := 2
:*X:def::Send,% (Code = 2)?"2.Hotstring":
I have 123456 and abcdef cut in half
User avatar
flyingDman
Posts: 869
Joined: 29 Sep 2013, 19:01

Re: max abbreviation length 40

07 Jul 2020, 15:22

@Rohwedder lol . That would do it alright but again why so long. This came to mind as an example:

Code: Select all

::thisismyabbreviationandIhadnothingshorter::hello
Rohwedder
Posts: 3636
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: max abbreviation length 40

08 Jul 2020, 04:06

Addendum:
Abbreviations are only replaced if they are written in full:

Code: Select all

:?*XB0:123::F:=1,No:= 1
:?*XB0:456::SendInput,% (F--*No)= 1?"{Bs 6}1.Hotstring":
:?*XB0:abc::F:=1,No:= 2
:?*XB0:def::SendInput,% (F--*No)= 2?"{Bs 6}2.Hotstring":
And false triggers became less likely.

Return to “Ask For Help”

Who is online

Users browsing this forum: anv, DaveT1, JoeWinograd, LakaiHigh, mikeyww, TheProdigyC2, TXShooter and 80 guests