PDA

View Full Version : Virtual Key Code for Hermes OK Button (both of them)


HHumbert
9th June 2007, 03:04 AM
I'm trying to get my remote control program to press the OK key, either the front-facing OK key, or the left-facing OK key.

For the life of me, I cannot find out the numeric value for the OK key. I've checked Vijay555's wonderful list at http://www.vijay555.com/?Releases:VJKeyPress:Key_List

I've even checked Microsoft's site at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/VirtualKeyCodes.asp

Any help?

Thanks in advance,
-Humbert

Sleuth255
9th June 2007, 03:45 AM
ok is special. There's no keycode for it. Pressing ok actually sends a WM_CLOSE message to the top level window (unless its the today window) or an IDOK if the TLW is a dialog box.

HHumbert
9th June 2007, 08:20 PM
Thanks, Slueth... Hmm. That makes sense. Oh well. It was worth a try. I guess Close is good enough for me for most cases. I'll just slam that VK code in there.

Thanks,
-Humbert