PDA

View Full Version : [FAQ]Keycodes



Mr. Doctor
10-27-2009, 08:48 PM
THIS IS KYLEGUT's TUTORIAL. I POSTED IT HERE BECAUSE IT WAS NEEDED.
ALL CREDIT TO HIM!
Sorry for the caps, needed to make a point. :p

So alot of people have questions as to what key is assigned what number, well here you go:

Please Note the the general use of these would be using:
KeyDown(KeyCode);
Sleep(time) //or wait, w/e you want
KeyUp(KeyCode);

Also Can be used with SendKeys, etc like so:
SendKeys(chr(KeyCode));
Which would basically just allow you to hint enter within the same line of coding Wink.

I prefer using KeyDowns and such though, because sendKeys doesnt always work for different internet games

######### A-Z #########



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-9 Above A-Z Keys #########



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


######### "F" Keys #########



F1 - 112
F2 - 113
F3 - 114
F4 - 115
F5 - 116
F6 - 117
F7 - 118
F8 - 119
F9 - 120
F10 - 121
F11 - 122
F12 - 123
//in case you have 15 of them
F13 - 124
F14 - 125
F15 - 126


######### Number Pad #########



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


######### Other Keys #########


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


If there are any keys that I missed, or you found to be incorrect, please tell me.

Enjoy Your Scripting!!!
-KyleGut3

Its all him.
Kylegut3 last visit at mopar was...


Date Registered: March 04, 2006, 05:50:50 pm
Last Active: March 27, 2008, 03:49:24 am

All credit goes to him. Thanks kyle, this helped me too! :D

Infantry001
10-27-2009, 10:02 PM
Good post, a much needed tutorial =)

rogeruk
10-28-2009, 11:28 AM
Or you could just..
http://hitec-designs.co.uk/dai/test.html

(Not my code)

KyleGut3
11-16-2009, 09:12 PM
It's good to know something I threw out years ago is still being put to use. ;)

Infantry001
11-17-2009, 03:50 AM
It was extremely useful =)

m3gaman3g3nd
01-15-2012, 01:59 AM
yup nice that its here, the more places you can find something the better!