Results 1 to 4 of 4

Thread: How Yo Simulate Ctrl Key Being Pressed

  1. #1
    Join Date
    Feb 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How Yo Simulate Ctrl Key Being Pressed

    okay im not sure how to simulate the ctrl key being pressed, i am currently working on a script that will grind for me on conquer online, and right now my guy runs around and its too slow, so i need the ctrl key so he can jump around.... if any1 has played conquer they know that i mean so....

    **my question is, how do i simulate the holding down of the ctrl key?

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

    Default

    procedure KeyDown(Key: Byte);
    Simulates pushing a key.
    procedure KeyUp(Key: Byte);
    Simulates releasing a key.
    The things you need are the codes:
    {
    ######### 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!:

    PrintScreen - 44 "Start" Key - 92
    }
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

  3. #3
    Join Date
    Mar 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for providing this. I needed this too.
    These are my principles. If you don't like them, well... I have others.

    Since brevity is the soul of wit, I will be brief. Auto Correctly.

  4. #4
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Or...

    SCAR Code:
    KeyDown(VK_Control); // Press down the key.
      Wait(2000); //How long to wait until release?
      KeyUp(VK_Control); // Release the key.

    Will press ctrl down and release after wait is done.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to make scar press ctrl+R
    By i like mauls in forum OSR Help
    Replies: 1
    Last Post: 02-01-2008, 04:24 PM
  2. Scar DIVI Freezes When I Ctrl+ALT+S
    By Nerheim in forum News and General
    Replies: 1
    Last Post: 06-18-2007, 05:22 PM

Posting Permissions

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