timk777
Active Member
- Joined
- Feb 19, 2007
- Sythe Gold
- 0
- Messages
- 156
Easy C++ AutoClicker. Feel free to leech etc:
Code:
#include <iostream>
#include <windows.h>
#include <stdlib.h>
using namespace std;
int main()
{
SetConsoleTitle("Timk77's AutoClicker");
{
cout << "Timk77's autoclicker" << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
int x,y,slpTime,i;
cout << "Enter the number of times to click: " << endl;
cin >> i;
cout << "Enter X Coordinate: " << endl;
cin >> x;
cout << "Enter y Coordinate: " << endl;
cin >> y;
cout << "Enter time in between clicks: " << endl;
cin >> slpTime;
cout << "Status." << "\n X coordinate: " << x << " \nY coordinate: " << y << " \nTime in seconds between clicks: " << slpTime << endl;
for(int t = 1; t <= i; t++){
SetCursorPos(x,y);
mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
Sleep(slpTime*1000);
if (GetAsyncKeyState(VK_ESCAPE)){
exit(0);
}
else continue;
}
return 0;
}
}














