Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decoding INKEY() into something human readable...
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Decoding INKEY() into something human readable...
Miscellaneous
Thread ID:
00109676
Message ID:
00109676
Views:
52
I've got some complicated keystrokes that I'de like to display to the user in a readable format.

In the help page for INKEY() function there is a table of keycodes that are returned by INKEY() and KeyPress() functions. Does anyone know of a procedure to convert the KeyCode and Modifier (Shift,Ctrl,Alt) into human readable form of the key pressed? (Or do I get to roll my own?)

An example of the functionality i'de like to duplicate is in MS Word, if you go to the View->Toolbars->Customize menu option then click on the "Keyboard" button a screen comes up where you can specify shortcuts. Put your cursor in the textbox below the "Press new shortcut key" label and then hit something like "Ctrl+Alt+D". The program records the keystroke and stuffs "CTRL+ALT+D" into the textbox.

Any ideas?

-- Dave
--
David Mann
Software Developer

"I don't believe in 'isms', I just believe in me" -- Ferris Bueller
Next
Reply
Map
View

Click here to load this message in the networking platform