i figured i would share what i use and maby someone who knows less c++ than me(nobody im new) can find it usefull. just put it in a loop and compile. Where it says Sleep(85) i find a good solid speed is around 15-40 depending on the gun you are using
Code:
if (GetAsyncKeyState(VK_CAPITAL)) //CAPITAL is Caps Lock{
Sleep( 85 ); //85 IS A SLOW SPEED. FASTEST IS AROUND 15
keybd_event( VK_LBUTTON,0x1,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYDOWN,0); //LBUTTON is left mouse, 0x1 is the VK number
Sleep( 85 ); //85 IS A SLOW SPEED. FASTEST IS AROUND 15
keybd_event( VK_LBUTTON,0x1,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
}