So I'm trying to make a rapid fire hack with 2 options. If you enter 1 then the program should make a you do 5 shots, and if you enter 2 then it's full auto, but once you input a number the program closes.
CODE:
CODE:
Code
#include <windows.h>
#include <iostream>
#include <string>
#include <ctime>
#define KeyDown(Key) (GetAsyncKeyState(Key) & 0x8000)// keyboard hook
using namespace std;
int main()
{
int Option;
cout << "\n\n\t\t 1.x5 Shot" << endl;
cout << "\n\n\t\t 2.Full Auto" << endl;
cin >> Option;
POINT p;
if (Option == 2)
{
if (KeyDown(0x46))
{
GetCursorPos( &p );//Gets Position of cursor
mouse_event(MOUSEEVENTF_LEFTDOWN, p.x, p.y, 0, NULL);//Left click hold down
Sleep(50);
mouse_event(MOUSEEVENTF_LEFTUP, p.x, p.y, 0, 0);//Left click lets go
Sleep(50);
cout << "\n\n\t\tFull Auto Working!" << endl;
}
}
else if (Option == 1)
{
int rep = 0;
if (KeyDown (0x46))
{
while(rep < 5)
{
GetCursorPos ( &p );
mouse_event (MOUSEEVENTF_LEFTDOWN, p.x, p.y, 0, NULL);
Sleep(50);
mouse_event(MOUSEEVENTF_LEFTUP, p.x, p.y, 0, 0);
rep++;
cout << "Tripple shot working!" << endl;
}
}
return 0;
}
}
