joe_pool_is
Contributor
I need to write an "easter egg" into our application.
It is designed to eliminate keystrokes, and it works great. This forces our application to use the hand held scanners that are plugged into the COM port. (If reading the COM port fails, we do not suppress the keystrokes)
However, occasionally someone in the IT department needs to remote in to do some diagnostics from another computer.
If KeyEventArgs.SuppressKeyPress = True, no one can operate the application remotely.
I'm looking for a good idea here.
I tried using the Alt key to signal that I want to bypass the Suppress feature, but then the Alt+(whatever was pressed) is unrecognizable by the system.
Example:
Say someone wants to enter their badge number: 123456 or log out of the system using the barcode text "LOGOUT". They should use the handheld scanners.
I want to enable keystrokes somehow, either if a special key is pressed (which seems like it would be easy to leak that information out) or some other technique.
Does any one know of a way to accomplish this task?
It is designed to eliminate keystrokes, and it works great. This forces our application to use the hand held scanners that are plugged into the COM port. (If reading the COM port fails, we do not suppress the keystrokes)
However, occasionally someone in the IT department needs to remote in to do some diagnostics from another computer.
If KeyEventArgs.SuppressKeyPress = True, no one can operate the application remotely.
I'm looking for a good idea here.
I tried using the Alt key to signal that I want to bypass the Suppress feature, but then the Alt+(whatever was pressed) is unrecognizable by the system.
Example:
Say someone wants to enter their badge number: 123456 or log out of the system using the barcode text "LOGOUT". They should use the handheld scanners.
I want to enable keystrokes somehow, either if a special key is pressed (which seems like it would be easy to leak that information out) or some other technique.
Does any one know of a way to accomplish this task?