I have a GUI with several input boxes and I want to trap the ENTER key so I can call handlers for each one.
However, when I put in a HotKeySet() to trap the ENTER key, it traps it OK, but I also get traps when I press the ENTER key anywhere else on my desktop, no matter what GUI has focus, so I changed the code to use GUISetAccelerators(). I cannot see how to attach a handler for the ENTER key for each of my input controls.
My real script uses event mode (Opt("GUIOnEventMode", 1)), so that's what I'm using in my test code.
Here is my test code:
#NoTrayIcon
#Region ;**** Directives cre