ok awhile ago i used to hack COD4 and this was something i found back then that worked.
Code:
void AtomFire()
{
if (AutoFireStage2)
{
if(clock() - AutoFireTMR > 55)
{
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); //
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); //
AutoFireTMR = clock();
}
}
}
}
i also added it so it detects the right mouse button held down. At the current setting it keeps shooting but slow if i put to 100 it shoots a little faster but not much and i go as high as 450 before it changes speeds again which at that point it slows down
I have tried every number from 55 - 0 and nothing works below 55 it wont do anything.
Im calling this through (IsMenuOn) when the menu is off this enables the Rapid fire if it is enabled in the menu and right mouse button is pressed.
Code:
if (AutoFire)
{
//Check if our right mouse is down dont forget 0x80 As Button is held down and keep firing the mouse click event
if(GetAsyncKeyState(VK_RBUTTON) & 0x8000)AutoFireStage2 = true;
else AutoFireStage2 = false;
}
any idea what im doing wrong or what i could do to improve the speed. I know there is a Rapid fire function in MW3 but i dont know how to use it so im trying to make one that will acrross most games.