Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


(c++) Simple made auto clicker

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries
View previous topic :: View next topic  
Author Message
avril18
Master Cheater
Reputation: 0

Joined: 11 Apr 2007
Posts: 380
Location: En san salvador, El Salvador

PostPosted: Thu Jun 26, 2008 5:55 pm    Post subject: (c++) Simple made auto clicker Reply with quote

this an auto cliker made in c++ (console)
don't spect much since is my first contribution to CEF
explanation inside the .cpp

READ THE .CPP FILE BEFORE OPENING THE .EXE



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________


Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Thu Jun 26, 2008 6:57 pm    Post subject: Reply with quote

Code:
A-Squared     
Found nothing
AntiVir    
Found nothing
ArcaVir    
Found nothing
Avast    
Found nothing
AVG Antivirus    
Found nothing
BitDefender    
Found nothing
ClamAV    
Found nothing
CPsecure    
Found nothing
Dr.Web    
Found nothing
F-Prot Antivirus    
Found nothing
F-Secure Anti-Virus    
Found nothing
Fortinet    
Found nothing
Ikarus    
Found nothing
Kaspersky Anti-Virus    
Found nothing
NOD32    
Found nothing
Norman Virus Control    
Found nothing
Panda Antivirus    
Found nothing
Sophos Antivirus    
Found nothing
VirusBuster    
Found nothing
VBA32    
Found nothing


File appears clean. Download at your own risk.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Labyrnth
Moderator
Reputation: 9

Joined: 28 Nov 2006
Posts: 6285

PostPosted: Fri Jun 27, 2008 1:13 pm    Post subject: Re: (c++) Simple made auto clicker Reply with quote

avril18 wrote:
don't spect much since is my first contribution to CEF


Man you wasnt kidding.
I would not have posted this, until i at least had a key to kill it instead of fighting through all the open windows to get pointer over the x to kill it.

_________________

Back to top
View user's profile Send private message
avril18
Master Cheater
Reputation: 0

Joined: 11 Apr 2007
Posts: 380
Location: En san salvador, El Salvador

PostPosted: Fri Jun 27, 2008 1:38 pm    Post subject: Re: (c++) Simple made auto clicker Reply with quote

Labyrnth wrote:
avril18 wrote:
don't spect much since is my first contribution to CEF


Man you wasnt kidding.
I would not have posted this, until i at least had a key to kill it instead of fighting through all the open windows to get pointer over the x to kill it.


like i said i tryied to put a hotkey to kill the clicker but it doesnt work
it compile right but in the main console it doesnt work

_________________


Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Jun 27, 2008 2:44 pm    Post subject: Reply with quote

What compiler are you using to somehow generate a 500kb exe?

The code is kind of convoluted.

"windows.h" should be <windows.h>

It's kind of pointless to make clicking a function, since in a case like this, it's only complicating the matter.

I guess what you were trying to do is this

Code:
#include <windows.h>

int main(){
   while(!GetAsyncKeyState(VK_F12)){
      mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
      mouse_event( MOUSEEVENTF_LEFTUP  , 0, 0, 0, 0 );
      Sleep(100);
   }
}
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Fri Jun 27, 2008 9:33 pm    Post subject: Reply with quote

Use threads if you need to do multiple things at once.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
h4cks 4 FuN
Cheater
Reputation: 0

Joined: 13 Aug 2008
Posts: 43

PostPosted: Mon Oct 13, 2008 4:15 pm    Post subject: Reply with quote

i think you should make like a hotkey to stop it.
i turned it on and i couldn't stop it. it scared me until i figured out that it could be stopped by closing the exe file thing...
Back to top
View user's profile Send private message
ssaccount
Master Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 391
Location: Finland

PostPosted: Fri Oct 17, 2008 6:30 pm    Post subject: Reply with quote

I modified this autoclicker little bit.

When you press F1 it starts clicking
When you press F2 it stops clicking

Here is the code:



Code:
#include <windows.h>

bool running = false;

int main()

{
while(true)
{

   while(running == true)
   {
      mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
      mouse_event( MOUSEEVENTF_LEFTUP  , 0, 0, 0, 0 );
      Sleep(100);

     if(GetAsyncKeyState(VK_F2))
     {
        running = false;
     }
   }

   while(running == false)
   {

if(GetAsyncKeyState(VK_F1))
{
   running = true;
}

   }


}
 
}

_________________
Programming in C++
(Or at least trying to Very Happy)
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Thu Oct 30, 2008 6:24 am    Post subject: Reply with quote

ssaccount wrote:
I modified this autoclicker little bit.

When you press F1 it starts clicking
When you press F2 it stops clicking


Use MSVC++, it makes correct spacing, and the code will be easyer to look at
And you should make an additional sleep in the "while(running == false)" loop...
The bool could be a local variable aswell, i dont like to use Global variables to much, but i dont think it really matters that much Wink
This is what it might look like:

Code:
#include <windows.h>

int main()
{
   bool running = false;
   while(true)
   {
      while(running == true)
      {
         mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
         mouse_event( MOUSEEVENTF_LEFTUP  , 0, 0, 0, 0 );
         Sleep(100);
         if(GetAsyncKeyState(VK_F2))
         {
            running = false;
         }
      }
      while(running == false)
      {
         if(GetAsyncKeyState(VK_F1))
         {
            running = true;
         }
         Sleep(50);
      }
   }
}


Exept from those small details, it's a nice way to do it Wink
Back to top
View user's profile Send private message
brutalme19
Advanced Cheater
Reputation: 0

Joined: 13 Jul 2008
Posts: 87

PostPosted: Mon Nov 24, 2008 11:42 am    Post subject: Reply with quote

Lol, wasn't expecting it to start clicking instantly. Opened up so many cmd windows i thought i got fork bombed xD.
Back to top
View user's profile Send private message
lossev
Master Cheater
Reputation: 0

Joined: 12 Jan 2007
Posts: 296
Location: Sweden

PostPosted: Thu Dec 04, 2008 6:09 am    Post subject: Reply with quote

any1 know how to make an autoclicker in c#?

ive tried, please help me or look at my topic

_________________
Oreo's and milk Wink
Back to top
View user's profile Send private message
Wintermoot
Expert Cheater
Reputation: 0

Joined: 08 Nov 2007
Posts: 198

PostPosted: Wed Dec 10, 2008 7:01 am    Post subject: Reply with quote

ssaccount wrote:
Code:
#include <windows.h>

int main()
{
   bool running = false;
   while(1) //Just shorter than true... Same thing...
   {
      if( running ) //If running == true
        { //Click
         mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
         mouse_event( MOUSEEVENTF_LEFTUP  , 0, 0, 0, 0 );
        }
     if( GetAsyncKeyState( VK_F1 ) ) //If the user presses F1
        {
         running = !running //The boolean running becomes the opposite (true = false, false = true)
        }
   Sleep( 100 ); //Sleep 100 milliseconds...
   }


I'm tired... Code should be pretty self explanatory...
whiles in whiles == bad idea...
Also, I find one hotkey to enable and disable a hack is best...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites