jinxdone - You are right about the handling of modifier keys, and I don't believe there is a good way to avoid the SimKeys plugin getting the keys distinctly. However, I think I found a way to ignore them in the plugin.
Basically I created a list (python "set") of modifier keys (Shift, Ctrl, Alt, Win). Whenever the plugin gets a value, I remove the modifiers and see how long the resulting list is. If the length is zero, I return without any processing. That way, no event is triggered until a non-modifier key is included. So in Dustin's example above, only SimKey.LShift+LCtrl+LAlt+E would show up (since the length without modifiers is 1 (the "E").
In theory someone could run a macro whenever Shift is entered, without waiting for any other key. These mods will preclude that type of handling, but I think this is better for 99.9% of users.
Dustin, give this one a try and let me know how it works.
- Modifier key version of SimKey plugin.
- (3.49 KiB) Downloaded 111 times