Jump to content

Auto Clicker!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
S0m30n3

S0m30n3

    Newbie

  • Members
  • Pip
  • 1 posts
If someone have a source of some of version Auto Clicker

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
We don't even know which platform you're using.

If you're using Win32, you could look into the function, SendInput.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
There are several auto-testers out there, that include auto-clicking as features. They may working. Google for "automated testing" or some such.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
mokszyk

mokszyk

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts

WingedPanther said:

There are several auto-testers out there, that include auto-clicking as features. They may working. Google for "automated testing" or some such.

I dont understand that :P i hate structures, better are examples :)

//#include <iostream>

#include <windows.h>

//#include <stdio.h>

using namespace std;


void trzech_kroli() // powiedzmy ze uruchamiamy CTRL + SHIFT + ESC

{

     // naciskamy po kolei klawisze

     keybd_event( VK_CONTROL, //klawisz kontrol

                      0x45,

                      KEYEVENTF_EXTENDEDKEY | 0,

                      0 ); //smieszne, sam nie wiem czemu te " | 0|

     keybd_event( VK_SHIFT, // klawisz shift

                      0x45,

                      KEYEVENTF_EXTENDEDKEY | 0,

                      0 );

     keybd_event( VK_ESCAPE, //klawisz ESC

                      0x45,

                      KEYEVENTF_EXTENDEDKEY | 0,

                      0 );

     //uwolnienie klawiszy

     keybd_event( VK_CONTROL,

                      0x45,

                      KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,

                      0);

     keybd_event( VK_SHIFT,

                      0x45,

                      KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,

                      0);

     keybd_event( VK_ESCAPE,

                      0x45,

                      KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,

                      0);

}

main()

{

      trzech_kroli(); // uruchamiamy funkcje trzech kroli

                      // mozna uzyc petli

                      // mozna uzyc wyboru naciskania klawiszy

                      // mozna uzyc funkcji sleep

}

THink positive :)

#5
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
Check my previous reply; use SendInput. keybd_event, and identical functions are deprecated and superseded; use the SendInput for keyboard- and mouse-simulation.