ID:2115478
![]() Jul 13 2016, 10:27 am
|
|||||||
Resolved
| |||||||
It'd be nice to have an Any macro that could be used to grab key-up/down info for all keys.
|
![]() Jul 13 2016, 10:28 am
|
|
Lummox JR resolved issue with message:
|
This doesn't prevent the default input control from automatically focusing and receiving typed keys, but the command still runs. Bug?
|
Bug or not, that's kind of cool. You can literally capture input no matter what (I bet that's some crazy overhead though).
|
Kaiochao wrote:
This doesn't prevent the default input control from automatically focusing and receiving typed keys, but the command still runs. Bug? I'd have to say the key-down being caught is a bug. (And therefore the accompanying key-up.) If the input control has focus and steals the key, then no macro should run at all. I probably forgot to do whatever check I'm doing for IsCharKey() in the right place. |
The default input control should still steal focus when it's an alphanumeric character, but the correct behavior is that the Any macro should not fire in that case. If the Any macro is firing, that's a bug.
|
Okay, so the Any macro is supposed to fire alongside other defined macros, otherwise not at all? I had the wrong impression about this.
|
The Any macro should fire even if you don't have a defined macro, but only at a time when a defined macro would have fired if it existed.
|
Is there any way we can prevent the default input from stealing focus if we want to just use the Any macro?
That is, for the input to behave as if every key has a macro, so the only way to type into it is to give it focus explicitly. |
Kaiochao wrote:
Is there any way we can prevent the default input from stealing focus if we want to just use the Any macro? To do that, turn off the default flag. A default input will always steal focus when it thinks you're typing a command. |