Page 1 of 1

Access to case of one or both of A_PriorKey or A_ThisHotkey

Posted: 11 Mar 2024, 10:50
by Jasonosaj
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).