HelpOffsets and Virtual Keys

Posts 1–9 of 9 · Page 1 of 1
Offsets and Virtual Keys
Ok so I have a css bhop hack that I made and wanted to make it into a csgo bhop hack but don't know how to find the offsets for it. Also I wanted to try making it less detected by making it send a virtual keystroke instead of writing to game memory and dont know how to do it.
So I got my offsets to work but I do not know if I am using SendInput correctly as it is making my game stutter when I hold my auto jump key.

Code:
void bhop()
{
    INPUT ip;

    ip.type = INPUT_KEYBOARD;
    ip.ki.wScan = 0;
    ip.ki.time = 0;
    ip.ki.dwExtraInfo = 0;

    if (isKeyDown(MOUSE4))
    {
        if (GetAsyncKeyState(INSERT))
        {
            toggle = !toggle;
        }
        if (!toggle)

            return;
        if (MyPlayer.m_fFlags == ON_GROUND)
        {
            ip.ki.wVk = 0x20;
            ip.ki.dwFlags = 0;
            SendInput(1, &ip, sizeof(INPUT));
        }
        else if (MyPlayer.m_fFlags != ON_GROUND)
        {
            ip.ki.dwFlags = KEYEVENTF_KEYUP;
            SendInput(1, &ip, sizeof(INPUT));
        }
    }
    else
    {
        return;
    }
}
Do it others way :p
Quote Originally Posted by ElliGi View Post
So I got my offsets to work but I do not know if I am using SendInput correctly as it is making my game stutter when I hold my auto jump key.

Code:
void bhop()
{
    INPUT ip;

    ip.type = INPUT_KEYBOARD;
    ip.ki.wScan = 0;
    ip.ki.time = 0;
    ip.ki.dwExtraInfo = 0;

    if (isKeyDown(MOUSE4))
    {
        if (GetAsyncKeyState(INSERT))
        {
            toggle = !toggle;
        }
        if (!toggle)

            return;
        if (MyPlayer.m_fFlags == ON_GROUND)
        {
            ip.ki.wVk = 0x20;
            ip.ki.dwFlags = 0;
            SendInput(1, &ip, sizeof(INPUT));
        }
        else if (MyPlayer.m_fFlags != ON_GROUND)
        {
            ip.ki.dwFlags = KEYEVENTF_KEYUP;
            SendInput(1, &ip, sizeof(INPUT));
        }
    }
    else
    {
        return;
    }
}
Well, I have to tell you: this is no the Best choice. If u are working with external, whatever u want to do u can use sendmessage. U can do it a thousand ways, but sendmessage rarely dont work.
Ooh, the Last parameter of sendmessage is null
Also, to make your code more simple and faster, simple do
if (playeronground){
Press jump
Unpress jump
}
U dont really need (and shoudnt do) check if !playeronground, cuz its Just make your code bigger and can work slow.. thats it
Sorry for no updates . I got my SendInput working but when it sends a space to the game my player does not jump. But when I open the chat window it shows that space is being hit. And it is not from me holding space as my hop key is mouse4.
WPM is not detected you can use it.
o i can write to jump and not get detected? i would think the game would tell if you were to mess around with the memory.
Quote Originally Posted by ElliGi View Post
o i can write to jump and not get detected? i would think the game would tell if you were to mess around with the memory.
You can write to the jump key value without getting banned, yes.
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us