Results 1 to 6 of 6

Thread: [FAQ]Keycodes

  1. #1
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [FAQ]Keycodes

    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.

    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:
    SCAR Code:
    KeyDown(KeyCode);
    Sleep(time) //or wait, w/e you want
    KeyUp(KeyCode);

    Also Can be used with SendKeys, etc like so:
    SCAR Code:
    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 #########
    Code:
    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 #########
    Code:
    0 - 48
    1 - 49
    2 - 50
    3 - 51
    4 - 52
    5 - 53
    6 - 54
    7 - 55
    8 - 56
    9 - 57
    ######### "F" Keys #########
    Code:
    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 #########
    Code:
    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 #########
    Code:
    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!:
    Code:
    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...
    Code:
    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!

  2. #2
    Join Date
    Jun 2006
    Posts
    1,493
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good post, a much needed tutorial =)

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Or you could just..
    http://hitec-designs.co.uk/dai/test.html

    (Not my code)

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  4. #4
    Join Date
    May 2006
    Location
    So-Cal
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's good to know something I threw out years ago is still being put to use.

  5. #5
    Join Date
    Jun 2006
    Posts
    1,493
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It was extremely useful =)

  6. #6
    Join Date
    Jan 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    yup nice that its here, the more places you can find something the better!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •