Thread: C Program - AutoClicker?

  1. #1
    Registered User
    Join Date
    Nov 2016
    Posts
    3

    C Program - AutoClicker?

    I'm new to C and have no idea where to start.

    So I'm trying to make an autoclicker where when the 5th button on my mouse is pushed down, the program makes my mouse left click every 80 milliseconds.

    While the 5th mouse button is being held down, the program clicks for 1 time per x millisecond(s).

    I'm not sure but I think this has to do with the mouse_event function.

    -------------------------------------------------------------
    Code:
    #include <stdio.h>
    #include <stdlib.h> 
    #include <stdbool.h>
    
    int main()
    {
    bool  mb5 = '5th mouse button function'(true) ;
    int ms;
    
    printf("How fast would you like to click? (milliseconds): \n");
    scanf("%i", &ms);
    
    while(mb5 = true)
    {
    (LEFT CLICK);
    delay(ms);
    }
    return 0;
    }
    ----------------------------------------------------------

    I bet there's a lot of mistakes with what I've jotted down. Anyways, I need a lot of help. I don't even know if my idea is possible in C programming but I'd like to try and make it work.
    ~Thanks!

  2. #2
    Registered User
    Join Date
    Jun 2015
    Posts
    1,643
    Assuming Windows, you may want to go through this tutorial: Learn to Program for Windows

  3. #3
    Registered User
    Join Date
    Nov 2016
    Posts
    3
    I've had some knowledge of C++, just didn't know what functions to use for each mouse button and etc. I was wondering if you could do it in C but it seems harder.
    Pastebin.com <---- Pastebin of the program I made.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-09-2014, 02:36 PM
  2. Autoclicker help
    By cb0ardpr0gr^mm3r in forum C Programming
    Replies: 1
    Last Post: 12-28-2009, 09:17 AM
  3. Simple autoclicker
    By Aparavoid in forum Windows Programming
    Replies: 8
    Last Post: 12-24-2009, 09:02 PM
  4. Replies: 1
    Last Post: 03-03-2009, 04:47 PM
  5. Replies: 5
    Last Post: 08-16-2007, 11:43 PM

Tags for this Thread