Auto Quick Scope Mode - C++
And there we go:
Code:
bool isAQS;
void EnterAQSMode()
{
while( TRUE ) //Enter in a infinite loop stat.
{
if(isAQS) //If our variable becomes true then...
{
if(GetKeyState(VK_RBUTTON) == 1) //If you press the right mouse button...
{
Sleep(100); //Stops the current thread for 100 ms.
mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); //Right Mouse Down
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); //1
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); //2
//1 + 2 = Left Mouse Click
mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); //Right Mouse Up
Sleep(100); //Already explained...Stops the current thread for 100 ms.
}
}
}
}
Hell yea, I luv C++!!! Credits: Mua! (Me)