As I said
most of them are not expose controls to ahk
#ifwinactive only works for different window, there's no way to tell ahk the difference of two page in the same application. Or maybe I just didn't know how, please correct me if I'm wrong
mikeyww wrote: ↑23 Sep 2022, 05:46
I don't know about your last question, but you would want to check to
see if your cursor is in an input field, or just use a different hotkey such as
F3. The forum has some scripts to detect the former, though some are not always reliable.
Some of my action is designed to working in input area or control that has focus, for example the 1,2,3 button I mentioned above, or press
v to send a emoji in pageA but not in anywhere else
Change the hotkey to Fn is an option but not always applicable. F1~F7 are occupied in, for example, my browser. A key without conflict it will be far from my hand and harder to press, if possible I prefer press
v to do that action instead of
Num7...everyone use ahk for maximum convenience right?
Another fact is that I add many small improvements for target application in different pages with the same hotkey, feels like polymorphic hotkey or something (when in doubt, press
v)
If some of them use different hotkey, it will be harder to use as I got bad memory ("press v...OK it's not working, what hotkey should I press in this page then?...")
mikeyww wrote: ↑23 Sep 2022, 05:46
Braces that bound a hotkey routine have no role in AHK v1, and should be removed.
Yes it has a role, for better code readability