Page 1 of 1

hotstring hierarchy ?

Posted: 28 Sep 2017, 08:16
by concepter
If I can afford to indicate a new feature:
introduce a kind of hotstring hierarchy where a longer hotstring takes precedence over a shorter one,
without considering the use of terminal characters.

This is a need that I expressed to this link :
https://autohotkey.com/boards/viewtopic.php?f=5&t=37464
and that might be useful for enhancing hotstring in v2 version of AHK.

It could be a directive #, enabled or disabled, without compromising the current standard functionality.

Re: hotstring hierarchy ?

Posted: 06 Oct 2017, 13:26
by concepter
To be more explicit and clarify the question, the precedence of the longest hotstring is the opposite of what is happening today, but it would be very useful to implement this functionality especially for those who use AHK to write text, so most of us all:

Code: Select all

#Hotstring ?*
::national aeronautics and space administration::NASA
::national aeronautics::national aeronautics (NA)   -> error!
by introducing the L directive, by length, we will give priority to longer hotstrings, and only when these can not be executed, then the shortest hotstrings are applied:

Code: Select all

#Hotstring L?*
::national aeronautics and space administration::NASA
::national aeronautics::national aeronautics (NA)
where the last hotstring are in the queue and is executed just the longest hotstring can not be executed anymore.