ddawson
Resource contributor
- Messages
- 862
- Country

Tom,
As Rob will likely recall, a number of years ago, I started working on a gauge to capture and optionally block both events and keystrokes. I was working with keyboard hooks for the keystrokes and the results were less than satisfactory, as the gauge had to carefully monitor whether FS was in focus. I ended up breaking from FS before I ever got it finished.
I recently blew the dust off the code and started working with SimConnect to achieve the same goals. It does work quite well, as the functions are there to either block, or simply detect, both events and keystrokes. In any case, the gauge, as envisioned, draws its instructions from a configuration file. Are you contemplating something that would by dynamically configurable with xml code?
Also, I believe that the ON KEY xml routine will generate a KEY_GAUGE_KEYSTROKE event. I think the ascii code for the key is passed as the parameter. Useful for C gauges and modules, not sure if it will help xml programming though.
Doug
As Rob will likely recall, a number of years ago, I started working on a gauge to capture and optionally block both events and keystrokes. I was working with keyboard hooks for the keystrokes and the results were less than satisfactory, as the gauge had to carefully monitor whether FS was in focus. I ended up breaking from FS before I ever got it finished.
I recently blew the dust off the code and started working with SimConnect to achieve the same goals. It does work quite well, as the functions are there to either block, or simply detect, both events and keystrokes. In any case, the gauge, as envisioned, draws its instructions from a configuration file. Are you contemplating something that would by dynamically configurable with xml code?
Also, I believe that the ON KEY xml routine will generate a KEY_GAUGE_KEYSTROKE event. I think the ascii code for the key is passed as the parameter. Useful for C gauges and modules, not sure if it will help xml programming though.
Doug


