Helpkeybd_event looping itself

Posts 1–4 of 4 · Page 1 of 1
keybd_event looping itself
Hey, at the moment, my code looks like this:

Code:
while (GetAsyncKeyState(HopKey)) 
{
	keybd_event(0x20, 0, 0, 0);
	Sleep(100);
	keybd_event(0x20, 0, KEYEVENTF_KEYUP, 0);
}
When HopKey (Space) is pressed, Space is being pressed, so it loops itself. I tried setting HopKey to something else, then it worked flawlessly, but my question is, how can I bypass this infinite itself loop?

- - - Updated - - -

Well apparently it only sent spaces when in chat etc, but didn't bunny hop, any ideas for a simple bhop script/app?
GetAsyncKeyState returns a nonzero value when the key was pressed since the last call of GetAsyncKeyState, which is why it'll loop forever.
Just use +jump and -jump. As long as you add some random junk and keep it to yourself, encrypt it, whatever, you won't get banned.
1 week has passed and no further replies have been made by the OP. Assuming solved.

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

Similar Threads

Tags for this Thread

None

Talk with us