. DirectXtras Home
        Home

DirectCommunication Xtra
DirectConnection Xtra
DirectControl Xtra
DirectEmail Xtra
DirectFTP Xtra
DirectImage Xtra
DirectInteraction Xtra
DirectOS Xtra
Documentation
License Agreement
Licensing Fees
Order Form
DirectSMS Xtra
DirectSound Xtra
DirectTransition Xtra
DirectTransition3D Xtra Set I
DirectTransition3D Xtra Set II
DirectTransition3D Xtra Set III
DirectTTS Xtra
XtrAgent
DirectXport Xtra

SpeechPlugin

Special Discounted Bundles

The Gallery
How To Order
Order Form
Check for Upgrades

Sign in
Change Your Profile

Contact Us
















    .
DirectXtras
Xtra Power for Director & Authorware



DirectOS Xtra
 Directing Windows and MacOS. The OS at your fingertips!

Authorware 4.x Compatible Authorware 5.x CompatibleAuthorware 6.x CompatibleAuthorware 7.x CompatibleDirector 5.x Compatible Director 6.x CompatibleDirector 7.x Compatible Director 8.x CompatibleDirector MX Compatible     MacOS 8.x and 9.x CompatibleMacOS X CompatibleWindows Compatible   

dosGetKeyState(integer KeyCode)

Returns the state of the specified key as being pressed or depressed on all keys except when the specified key is the Caps Lock key. When the Caps Lock key is specified, this method returns whether the Caps Lock is enabled or disabled. 1 is returned indicating true or integer 0 indicating false.

Parameter : KeyCode : An integer specifying the code of the key to check. 


Possible Values : 

BackSpace = 8

Tab = 9

Return = 13 *4

Shift = 16 *8

Control =17 *8

Alt/Option=18 *8

Pause = 19

CapsLock = 20 *5

Escape = 27

Space = 32

PageUp = 33

PageDown = 34

End = 35

Home = 36

Left = 37

Up = 38

Right = 39

Down = 40

PrintScreen = 44

Insert = 45

Delete = 46

0 = 48

1 = 49

2 = 50

3 = 51

4 = 52

5 = 53

6 = 54

7 = 55

8 = 56

9 = 57

A = 65

B = 66

C = 67

D = 68

E = 69

F = 70

G = 71

H = 72

I = 73

J = 74

K = 75

L = 76

M = 77

N = 78

O = 79

P = 80

Q = 81

R = 82

S = 83

T = 84

U = 85

V = 86

W = 87

X = 88

Y = 89

Z = 90

LWin = 91 *1

RWin = 92 *1 

Apps = 93 *1

Sleep = 95

NumPad0 = 96

NumPad1 = 97

NumPad2 = 98

NumPad3 = 99

NumPad4 = 100

NumPad5 = 101

NumPad6 = 102

NumPad7 = 103

NumPad8 = 104

NumPad9 =105

Multiply = 106

Add = 107

Subtract = 109

Decimal = 110

Divide = 111

F1 = 112

F2 = 113

F3 = 114

F4 = 115

F5 =116

F6 = 117

F7 = 118

F8 = 119

F9 = 120

F10 = 121

F11 = 122

F12 = 123

F13 = 124 *1

F14 = 125 *1

F15 = 126 *1

F16 = 127 *1

F17 = 128 *1 F18 = 129 *1

F19 = 130 *1

F20 = 131 *1 F21 = 132 *1 F22 = 133 *1 F23 = 134 *1 F24 = 135 *1

NumLock = 144

ScrollLock = 145

LShift = 160 *2 RShift = 161 *2 LControl = 162 *2
RControl = 163 *2

LAlt = 164 *2

RAlt = 165 *2

166 = back *6

167 = forward *6

168 = refresh *6

169 = stop *6 170 = search *6 171 = favorites *6 172 = home *6
173 = mute *6 174 = volume - *6 175 = volume + *6 176 = next *6 177 = previous *6
178 = stop *6 179 = play *6 180 = mail *6 181 = media *6 182 = app1 *6
183 = app2 *6 186 = ';:' *7 Equals = 187 Comma = 188 UnderScore = 189
Period = 190 Slash =191 192 = '`~' *7 219 = '[{' BackSlash = 220
RightBrace = 221 Apostrophe = 222

Enter = 256 *3

Command = 257 *3

 

*1 = Only available on Windows 
*2 = Only available on Windows NT, Windows 2000, Windows XP
*3 = Only available on MacOS 
*4 = On Windows, this refers to either the keyboard Enter key or keypad Enter key being pressed. On MacOS, this refers to the keyboard Return key only. 
*5 = Returns whether the Caps Lock is enabled or disabled as opposed to whether it is pressed or depressed.
*6 = Only available on Windows 2000 and Windows XP
*7 = May vary by non-US or non-standard keyboards
*8 = MacOS, Win95, and Win98 Only

Return Value : An integer indicating whether the specified key is pressed or depressed (enabled or disabled if the specified key is the Caps Lock key). If 1 is returned the key is pressed. If 0 is returned the key is depressed. 

Remarks :  On MacOS, if a large number of keys is being pressed simultaneously this method may not return 1 for all the keys that are pressed. 



DirectXtras Inc.
P.O Box 2645, Menlo Park, CA, 94026, U.S.A
Voice: +1-415-5058249, Fax: +1-801-8585841
Toll Free: 1-800-4453093
E-mail General Information: info@directxtras.com
E-mail Technical Support: support@directxtras.com

Copyright 1996-2004 DirectXtras Inc. All Rights Reserved.
WebMaster: tamar@directxtras.com
Last Updated: 2/18/2002 3:12:23 PM.