Author Topic: MY auto clicker =]  (Read 114 times)

KutiePie

  • Global Moderator
  • Junior
  • *****
  • Posts: 62
    • View Profile
MY auto clicker =]
« on: January 09, 2011, 05:12:16 am »
Auto Clicker i wrote myself =]
To get X and Y coordinates just do a screenshot and put it in paint. use the pencil tool to get the x and y coordinates.

Quote
#include <iostream>
#include <windows.h>
#include <stdlib.h>

using namespace std;

int main()
{


    int I;
   int ttl;
    int X;
    int Y;
    int Sleep_Time;
    cout << "++++++++++++++Basic Auto Clicker++++++++++++++\n\n";
    cout << "Number Of Clicks:";
    cin >> I;
    cout << "\tX Coordinate:";
    cin >> X;
    cout << "\n\tY Coordinate:";
    cin >> Y;
    cout << "Time (In Seconds) Between Clicks:";
    cin >> Sleep_Time;
    cout << "Status." << "\n X coordinate: " << X << " \nY coordinate: " << Y << " \nTime in seconds between clicks: " << Sleep_Time << "\n";
   ttl=I*Sleep_Time;
    for(int t = 1; t <= I; t++){
      system("cls");
      cout << "Time left: ";
      cout << ttl-(t*Sleep_Time)<<"\tClicks Left: "<< ((ttl/Sleep_Time)-t);
        SetCursorPos(X,Y);
        mouse_event(MOUSEEVENTF_LEFTDOWN, X, Y, 0, 0);
        mouse_event(MOUSEEVENTF_LEFTUP, X, Y, 0, 0);
        Sleep(Sleep_Time*1000);
    }



return 0;
}

Share on Bluesky Share on Facebook


Rage

  • Administrator
  • Junior
  • *****
  • Posts: 65
    • View Profile
Re: MY auto clicker =]
« Reply #1 on: January 09, 2011, 07:08:00 am »
or you just dl a auto clicker that just clicks and put your mouse over where u want clicked :)

KutiePie

  • Global Moderator
  • Junior
  • *****
  • Posts: 62
    • View Profile
Re: MY auto clicker =]
« Reply #2 on: January 09, 2011, 01:59:02 pm »
This is the program compiled. see the size of it?