| 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
 
 | 
			
				|  Posted: Thu Jun 26, 2008 5:55 pm    Post subject: (c++) Simple made auto clicker |   |  
				| 
 |  
				| 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
 
 
 
 
 _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| atom0s Moderator
 
  Reputation: 205 
 Joined: 25 Jan 2006
 Posts: 8587
 Location: 127.0.0.1
 
 | 
			
				|  Posted: Thu Jun 26, 2008 6:57 pm    Post subject: |   |  
				| 
 |  
				|  	  | 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 |  | 
	
		|  | 
	
		| Labyrnth Moderator
 
 ![]() Reputation: 10 
 Joined: 28 Nov 2006
 Posts: 6301
 
 
 | 
			
				|  Posted: Fri Jun 27, 2008 1:13 pm    Post subject: Re: (c++) Simple made auto clicker |   |  
				| 
 |  
				|  	  | 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 |  | 
	
		|  | 
	
		| avril18 Master Cheater
 
  Reputation: 0 
 Joined: 11 Apr 2007
 Posts: 380
 Location: En san salvador, El Salvador
 
 | 
			
				|  Posted: Fri Jun 27, 2008 1:38 pm    Post subject: Re: (c++) Simple made auto clicker |   |  
				| 
 |  
				|  	  | 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 |  | 
	
		|  | 
	
		| hcavolsdsadgadsg I'm a spammer
 
 ![]() Reputation: 26 
 Joined: 11 Jun 2007
 Posts: 5801
 
 
 | 
			
				|  Posted: Fri Jun 27, 2008 2:44 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| atom0s Moderator
 
  Reputation: 205 
 Joined: 25 Jan 2006
 Posts: 8587
 Location: 127.0.0.1
 
 | 
			
				|  Posted: Fri Jun 27, 2008 9:33 pm    Post subject: |   |  
				| 
 |  
				| Use threads if you need to do multiple things at once. _________________
 
 - Retired. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| h4cks 4 FuN Cheater
 
  Reputation: 0 
 Joined: 13 Aug 2008
 Posts: 43
 
 
 | 
			
				|  Posted: Mon Oct 13, 2008 4:15 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| ssaccount Master Cheater
 
 ![]() Reputation: 0 
 Joined: 29 Aug 2007
 Posts: 391
 Location: Finland
 
 | 
			
				|  Posted: Fri Oct 17, 2008 6:30 pm    Post subject: |   |  
				| 
 |  
				| 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
  ) |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Anden100 Grandmaster Cheater
 
 ![]() Reputation: 0 
 Joined: 20 Apr 2007
 Posts: 668
 
 
 | 
			
				|  Posted: Thu Oct 30, 2008 6:24 am    Post subject: |   |  
				| 
 |  
				|  	  | 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
   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
   |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| brutalme19 Advanced Cheater
 
 ![]() Reputation: 0 
 Joined: 13 Jul 2008
 Posts: 87
 
 
 | 
			
				|  Posted: Mon Nov 24, 2008 11:42 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| lossev Master Cheater
 
 ![]() Reputation: 0 
 Joined: 12 Jan 2007
 Posts: 296
 Location: Sweden
 
 | 
			
				|  Posted: Thu Dec 04, 2008 6:09 am    Post subject: |   |  
				| 
 |  
				| any1 know how to make an autoclicker in c#? 
 ive tried, please help me or look at my topic
 _________________
 
 Oreo's and milk  |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Wintermoot Expert Cheater
 
  Reputation: 0 
 Joined: 08 Nov 2007
 Posts: 198
 
 
 | 
			
				|  Posted: Wed Dec 10, 2008 7:01 am    Post subject: |   |  
				| 
 |  
				|  	  | 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 |  | 
	
		|  | 
	
		|  |