Detect keys down on application startup?
Posted on 2010-11-09
I have written in C#. I would like the application to start in a "support mode" if the user is holding down Ctrl+Shift+S when the application starts.
As I need to detect the "support mode" keys before the application starts (i.e. the main form loads), I can't do it on the keydown event of the main form. This is because some of the things on the main form get initialised differently in support mode.
I can't find a way of getting the current keys pressed without responding to events.
How can I do this?