microsoft.com Home  
Microsoft
http://www.microsoft.com/office/ork  
Microsoft Office 2000 Resource Kit Home
 Managing and Supporting Office 2000
 Ongoing Configuration of Office on Users' Computers
Managing Users' Options with System Policies
Locking Down an Office Configuration
Using the System Policy Editor
Office 2000 System Policy Reference
Office Registry API
 Helping Users Help Themselves
 Managing Security
 Overview of Tools and Utilities
Glossary
Index
Using the System Policy Editor

Virtual Key Codes for Shortcut Keys

Each key and modifier key used in Windows has an associated virtual key code. You use these codes to identify the unique key you want to control.

In the System Policy Editor, you enter the values for keys and modifier keys by using the following syntax:

key,modifier

where key is the value of a key (for example, G) in Windows, and modifier is the value of either a modifier key (for example, ALT or SHIFT) or a combination of modifer keys in Windows.

If you have multiple modifier keys for the shortcut key, you add the values of the modifier keys together to determine the actual modifer key value you will enter in the System Policy Editor (for example, ALT+SHIFT = 16+4 = 20).

Use the following values to refer to keys in the System Policy Editor.

Key Value
ALT 16
CONTROL 8
SHIFT 4
A – Z A sequential number between 65 and 90, where A = 65, and Z = 90

Note   Office does not use the virtual key codes for ALT, CONTROL, and SHIFT. To refer to these keys in the Office environment, use the values of the modifier keys specified in the table.

Top

See also

You can look up additional virtual key codes in the Windows NT Server Resource Kit or on the Microsoft Developer Network Web site at http://msdn.microsoft.com/developer/. If you look up a virtual key code and find a hexadecimal value, however, you must convert the key code to a decimal value and enter that value in the System Policy Editor.


Topic Contents
Previous

Topic Contents   |   Previous   |   Top

  Friday, March 5, 1999
© 1999 Microsoft Corporation. All rights reserved. Terms of use.

License