Gyannea
January 2nd, 2003, 08:12 AM
I understand that Windows is a mouse-oriented system, but given that my application is to be run in a shipboard environment and potentially rough conditions it is mandatory that functionality is directed toward the keyboard.
So what I would like to do is display a series of push button windows that 'press' when a key is pressed; in other words a keypress would be converted into a mouse button click. Can one take an accelerator keypress message and somehow convert it to an appropriate mouse click message and mouse position and send it to the operating system such that the button would depress? It might be better not to use "TranslateAccelerator()" and just catch the keypress message directly and convert it to a mouse activity.
I realize that if I have accelerator keys and the button says "F2" in it and the user presses F2, the correct response will happen but the button on the display will just sit there looking boring. So all this effort is just for looks, but we all know that is important.
Thanks for any insight!
So what I would like to do is display a series of push button windows that 'press' when a key is pressed; in other words a keypress would be converted into a mouse button click. Can one take an accelerator keypress message and somehow convert it to an appropriate mouse click message and mouse position and send it to the operating system such that the button would depress? It might be better not to use "TranslateAccelerator()" and just catch the keypress message directly and convert it to a mouse activity.
I realize that if I have accelerator keys and the button says "F2" in it and the user presses F2, the correct response will happen but the button on the display will just sit there looking boring. So all this effort is just for looks, but we all know that is important.
Thanks for any insight!