Access to case of one or both of A_PriorKey or A_ThisHotkey

Propose new features and changes
Jasonosaj
Posts: 51
Joined: 02 Feb 2022, 15:02
Location: California

Access to case of one or both of A_PriorKey or A_ThisHotkey

11 Mar 2024, 10:50

First off, thank you, @Lexicos. Honestly, the work that you have put into this language is remarkable and deserving of a lot more attention than it gets.

In terms of the request/recommendation - it would be tremendously helpful to have access to the case of the character or string of characters that triggered a hotkey (auto-replacing or not). At present, the hotstring ":*:testB::testA" reports "testb" as A_ThisHotkey and "b" as A_Priorkey. Ideally, A_ThisHotkey would return "TestB" and "A_PriorKey" would return "B". It might also help to introduce A_LastChar to address the last non-whitespace character. @Descolada proposed a solution to this problem (https://github.com/AutoHotkey/AutoHotkey/pull/332).

Return to “Wish List”

Who is online

Users browsing this forum: DataLife, Ragnar and 113 guests