keybd_event looping itself
Hey, at the moment, my code looks like this:
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?
Code:
while (GetAsyncKeyState(HopKey))
{
keybd_event(0x20, 0, 0, 0);
Sleep(100);
keybd_event(0x20, 0, KEYEVENTF_KEYUP, 0);
}
- - - Updated - - -
Well apparently it only sent spaces when in chat etc, but didn't bunny hop, any ideas for a simple bhop script/app?