PDA

View Full Version : Key Codes.



Hey321
12-03-2006, 02:32 AM
Ok, so i need either:

A: A list of EVERY key OR
B: The Function/Procedure to get the codes

I'm try to make a progress report that TypeSends the amount of time it has run but doesn't press enter. Then it wait for 5 minutes for me to see then erases it.

XcanadamanX
12-03-2006, 02:34 AM
ill pm u the key numbers if thats what you want.

Hey321
12-03-2006, 02:38 AM
Ya, please that would help a lot.

XcanadamanX
12-03-2006, 02:40 AM
i pmed u them.

Hey321
12-03-2006, 02:40 AM
Thanks, well off to bed then im gonna make a totally pwnage script tomorrow :). Or start one anyways.

Rick
12-03-2006, 07:45 PM
Heres the procedure to get any keycode.


program New;
var
keycodel : Integer;
begin
keycodel:= GetKeyCode('?');// cange ? into whatever key you want
Writeln(inttostr(keycodel));
end.

TOB
12-03-2006, 08:29 PM
Heres the procedure to get any keycode.


program New;
var
keycodel : Integer;
begin
keycodel:= GetKeyCode('?');// cange ? into whatever key you want
Writeln(inttostr(keycodel));
end.

Won't work for all of them due to keys like Control, Alt, Enter.

raimis89
12-09-2006, 09:20 AM
yeah it dont wotk for them ... Whats the code of the spacebar and leftalt?
Or what should i write to stimulate that?

XcanadamanX
12-09-2006, 02:39 PM
here you go...
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

0 - 48
1 - 49
2 - 50
3 - 51
4 - 52
5 - 53
6 - 54
7 - 55
8 - 56
9 - 57

F1 - 112
F2 - 113
F3 - 114
F4 - 115
F5 - 116
F6 - 117
F7 - 118
F8 - 119
F9 - 120
F10 - 121
F11 - 122
F12 - 123

0 - 96
1 - 97
2 - 98
3 - 99
4 - 100
5 - 101
6 - 102
7 - 103
8 - 104
9 - 105
Multiply - 106
Add - 107
Enter - 108
Subtract - 109
Decimal - 110
Divide - 111

Backspace - 8
Tab - 9
Clear - 12
Enter - 13 // next to a-z
Shift - 16
Control - 17
Alt - 18
Capslock - 20
Escape - 27
Spacebar - 32
PageUp - 33
PageDown - 34
End - 35
Home - 36
Left Arrow - 37
Up Arrow - 38
Right Arrow - 39
Down Arrow - 40
Insert - 45
Delete - 46
Help - 47
Numberlock - 144
Semi-Colon / Colon - 186
Equals / Plus - 187
Minus / Underscore - 189
Forward Slash / Question Mark - 191
Apostrophe / Tilde - 192
Open Bracket / Open Brace - 219
Backslash / Seperator - 220
Close Bracket / Close Brace - 221
Quote Key - 222

Added!:
PrintScreen - 44
"Start" Key - 92
credits to Boreas for this...(got them from him)

Boreas
12-09-2006, 04:48 PM
And I got them from kylegut3 on moparisthebest.com tutorial section.