Sign in to follow this  
Followers 0
Rewl

Auto Click

4 posts in this topic

#1 ·  Posted (edited)

Introduction

As I play alot of games that make you have to click, My hand gets tired from all the clicking. So as a second program I thought, "Why not make an auto clicker." So I did.

Launches

v1.0 -- Release

What it Does

Auto clicker that when your right click, it pauses the script for 2 seconds than goes back to auto clicking.

Controls are:

Esc- close

Spacebar - Pause

Bugs

None right now! Post any!

Source

#include<IE.au3>
#include <Misc.au3>


HotKeySet("{ESC}" , "close")
HotKeySet("{SPACE}" , "startpause")

Dim $click = False
$dll = DllOpen("user32.dll")

CMsgBox(64, "Rewl's Auto Click v1.0" , "Thank-you for using Auto Clicker, Press ""ESC"" to close the program and ""spacebar"" to pause the clicker and SpaceBar to start it.")

Func close()
    $iE = _IECreate()
    $m = MsgBox(4 , "Rewl's Auto Click v1.0" , "Thank-you for trying the program, Press yes to visit Auto-IT Thread.")
    IF $m = 6 Then
        _IENavigate($iE , "http://www.autoitscript.com/forum/topic/122227-auto-click/")
    EndIf
    Exit
EndFunc

Func startpause()
   If $click = False Then
      $click = True
      ToolTip("Rewl Auto Click v1.0 Running." , 0 , 0)
   Else
      $click = False
      ToolTip("Rewl Auto Click v1.0 Paused." , 0 , 0)
   EndIf
EndFunc


While 1
    If _IsPressed ( "02" ) = 1 Then
        ConsoleWrite ( "Sleep ( 2000 )" & @Crlf )
        Sleep ( 2000 )
        $click = True
    EndIf

   If $click = True Then
    MouseClick("left")
    Sleep(50)
EndIf
sleep(20)
WEnd

Auto Clicker.au3

Edited by Rewl

[size="1"]Programs: Draw Tool | [/size]

Share this post


Link to post
Share on other sites



it's a good start ! Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Introduction

As I play alot of games that make you have to click, My hand gets tired from all the clicking. So as a second program I thought, "Why not make an auto clicker." So I did.

Lets not go into autoclicker mode and stick to our rules.

*click*


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0