Results 1 to 4 of 4
  1. #1
    NightNinja654's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    My Mood
    Confused

    keybd_event CSGO

    Ok I am still new to C++, I have tried googlieng but I can't really find it because there is no real good way of stating the question. Anyways, lets say you have a program (like a bhop script) where if you hold spacebar it spams it, but only whenever you are not pressing any other keys. I can't find out a way to let me press other keys (like A-D to strafe) while spamming the spacebar with the keybd_event hack. If someone could help me that would be appreciated!

    Also this is basically the code I am talking about where CS:GO / your computer doesn't recognize any other keys being pressed while holding spacebar



    #include <iostream>
    #include <windows.h>
    #include <conio.h>
    #include <stdlib.h>
    #include <stdio.h>

    int main()
    {
    while (1)
    {
    if (GetAsyncKeyState(VK_SPACE) & 0x8000)
    {

    keybd_event(VK_SPACE, 0x39, NULL, NULL);

    Sleep(3);

    keybd_event(VK_SPACE, 0x39, KEYEVENTF_KEYUP, NULL);

    Sleep(3);
    }
    }
    }

  2. #2
    PhY'z's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    518
    Reputation
    58
    Thanks
    1,310
    My Mood
    Angelic
    Quote Originally Posted by NightNinja654 View Post
    Ok I am still new to C++, I have tried googlieng but I can't really find it because there is no real good way of stating the question. Anyways, lets say you have a program (like a bhop script) where if you hold spacebar it spams it, but only whenever you are not pressing any other keys. I can't find out a way to let me press other keys (like A-D to strafe) while spamming the spacebar with the keybd_event hack. If someone could help me that would be appreciated!

    Also this is basically the code I am talking about where CS:GO / your computer doesn't recognize any other keys being pressed while holding spacebar



    #include <iostream>
    #include <windows.h>
    #include <conio.h>
    #include <stdlib.h>
    #include <stdio.h>

    int main()
    {
    while (1)
    {
    if (GetAsyncKeyState(VK_SPACE) & 0x8000)
    {

    keybd_event(VK_SPACE, 0x39, NULL, NULL);

    Sleep(3);

    keybd_event(VK_SPACE, 0x39, KEYEVENTF_KEYUP, NULL);

    Sleep(3);
    }
    }
    }
    If you dont wanna read and write anything in memory, you have to go ingame and set another key for +jumo
    Like
    bind f6 +jump

    Then at your code change the keybd_event to f6 key
    Else it will not work

    And also this "script" is kinda useless since you have the c++, and tons of memory sources, its just read and write, it will be easier and better,
    Your code like this will be the same as a AHK script...

    Also next time use search...
    Seems fixed @Smoke
    Contact with me in any question...


    Hi (:

  3. #3
    sethxi's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Location
    Texas
    Posts
    72
    Reputation
    10
    Thanks
    431
    just write memory dude it's not hard

  4. #4
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    Seems this has been solved as user has come online and has not bumped/updated thread.


    /Closed


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

Similar Threads

  1. Selling CSGO Steam Account
    By BatangxxPinoy in forum Selling Accounts/Keys/Items
    Replies: 3
    Last Post: 05-18-2012, 05:50 PM
  2. I want to buy CSGO account or gift
    By adsl2010 in forum Buying Accounts/Keys/Items
    Replies: 3
    Last Post: 05-11-2012, 06:48 AM
  3. CSGO key
    By zackaustin in forum Buying Accounts/Keys/Items
    Replies: 2
    Last Post: 03-17-2012, 04:45 AM
  4. [Help] Sending keybd_event In-Game [Solved]
    By tester181 in forum C++/C Programming
    Replies: 15
    Last Post: 09-27-2011, 11:01 PM
  5. Using underscore in a keybd_event makes your computer go retarded?
    By master131 in forum Visual Basic Programming
    Replies: 1
    Last Post: 12-19-2010, 09:35 PM

Tags for this Thread