Hi,kann mir jemand sagen warum folgender Code nicht funzt?Er sollte ganz schnell mit der Pistole schiesen aber er hängt immer beim schiesen...Manchmal schiest er recht schnell dann wieder gar nicht oder nur langsam O_o
Hi,can anyone tell me why this code doesn't work?It should force CSS to shot the pistol very fast!
(Excuse me for my terrible englisch :bandit: )
Danke im voraus,
Xalon
Hi,can anyone tell me why this code doesn't work?It should force CSS to shot the pistol very fast!
(Excuse me for my terrible englisch :bandit: )
Code:
#include <windows.h>
int main(void)
{
HWND css;
css = FindWindow(NULL,"Counter-Strike Source");
while(1)
{
SendMessage(css,WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(1,1));
SendMessage(css, WM_LBUTTONUP , MK_LBUTTON, MAKELPARAM(1,1));
}
}
Xalon