Making a bhopperi am making a bhopper for crossfire... it simply presses space 20 times per second to assist with bhopping. however crossfire does not jump in response to my sendkeys.... why would this be? this is how im sending the keys: Code: void SendKey(BYTE virtualKey) { keybd_event(virtualKey, 0, 0, 0); Sleep(20); keybd_event(virtualKey, 0, KEYEVENTF_KEYUP, 0); }
Originally Posted by _corn_ i am making a bhopper for crossfire... it simply presses space 20 times per second to assist with bhopping. however crossfire does not jump in response to my sendkeys.... why would this be? this is how im sending the keys: Code: void SendKey(BYTE virtualKey) { keybd_event(virtualKey, 0, 0, 0); Sleep(20); keybd_event(virtualKey, 0, KEYEVENTF_KEYUP, 0); } having trouble making an auto typer for crossfire as well. just shortcuts like /w /r you know. and it won't even type those in.
maybe instead of "sending" the keys we need to somehow set the key state.... is there a function for setting key state?
Originally Posted by _corn_ maybe instead of "sending" the keys we need to somehow set the key state.... is there a function for setting key state? Crossfire read keys excatly from keyboard, and ignores Windows Inputs :/
so basically you cant tell cf what to do unless you make a mechanism that physically presses the keys -.-
Originally Posted by _corn_ so basically you cant tell cf what to do unless you make a mechanism that physically presses the keys -.- No, you must hook into Crossfire to imitate a key press....
@_corn_ nice try , i was of from Cf i get back now some day's but how i remember CF block's the sendKey's ....