hotstring hierarchy ?

Discuss the future of the AutoHotkey language
concepter
Posts: 47
Joined: 24 Aug 2017, 13:02

hotstring hierarchy ?

28 Sep 2017, 08:16

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.
concepter
Posts: 47
Joined: 24 Aug 2017, 13:02

Re: hotstring hierarchy ?

06 Oct 2017, 13:26

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.

Return to “AutoHotkey Development”

Who is online

Users browsing this forum: No registered users and 31 guests