• Log in or sign up for an account here: https://www.sythe.org/login

Simple C++ AutoClicker

Status
Not open for further replies.

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;
	}
}
 
I'm guessing i can't use this with Linux??

#include <windows.h>

untitleduh6.png
 
which compiler should i use to make this into actual program?

dev's compiler or what?

recommend one please
 
ok I got it worked out I had to put it in Dev C++ instead of my VS C++ thanks I like it other then you cant click were you want the clicker
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Don't gravedig...
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top