Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding

    [TUT]How to make a Simple Auto Clicker!

    Well this is my first Tutorial so please give me some comments about this.

    What we will do in this tutorial?
    • A simple Auto Clicker.
      Hotkeys.
      Interval
      & more!


    I will split this tutorial in 3 parts.1 part is for the button,2 part is for the GUI and things like that and 3 part is for coding.

    First Part:

    First,Open Microsoft Visual Basic 2008 Express Edition.
    When it open press Ctrl+N.
    Choose Windows Forms Applications and name it Simple Auto Clicker,and click OK.
    You will need 3 Labels.
    The label1 text should be F5 = Start
    The label2 text should be F6 = Stop
    The label3 text should be Speed of the clicks.

    Than you will need 1 Textbox.
    This should be under Speed of the clicks or beside it.

    Than you will need 2 Timers.
    Change Timer1 name to Hotkeys.
    Enable do it False.
    And Interval do it 1.

    Change Timer2 name to Clicks.
    Than just change Interval do 1000.

    Part 2:
    Click on Form1.
    And go on Properties.
    Change Maximize Box,Minimize Box and Show Icon to False.
    Than change TopMost to True.
    Don't do the background(GUI)so big do it like 300 , 150.

    Part 3:
    So this will be the coding.
    Double Click On Form1 and Delete Everything in there.

    Than copy and paste this code:
    Code:
    Public Class Form1
        Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
        Private Declare Sub mouse_event Lib "user32" (ByVal dwflags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cbuttons As Long, ByVal dwExtraInfo As Long)
        Private Const mouseclickup = 4
        Private Const mouseclickdown = 2
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hotkeys.Tick
            Dim Hotkey1 As Boolean
            Hotkey1 = GetAsyncKeyState(Keys.F5)
            If Hotkey1 = True Then
                Clicks.Start()
    
            End If
            Dim Hotkey2 As Boolean
            Hotkey2 = GetAsyncKeyState(Keys.F6)
            If Hotkey2 = True Then
                Clicks.Stop()
    
            End If
        End Sub
    
        Private Sub Click_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Clicks.Tick
            Clicks.Interval = TextBox1.Text
            mouse_event(mouseclickdown, 0, 0, 0, 0)
            mouse_event(mouseclickup, 0, 0, 0, 0)
        End Sub
    
        Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
    
        End Sub
        Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click
    
        End Sub
    End Class
    Press F5 and it should start Debugging.
    Than Save it.

    Credits:
    VBFX~For the code.
    ©®o$s ƒi®E™~for writing the tut.
    That's all.
    If you find any problems please comment.


    Here A video:
    [/COLOR]

  2. The Following User Says Thank You to DeathHunter For This Useful Post:

    [U]lixa (04-05-2010)

  3. #2
    ĐŏпŦ ҚĬŁŁ ₥Ễ, ฿ỈŦ©Ĥ!!
    MPGH Member
    [U]lixa's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    In The Hell
    Posts
    1,238
    Reputation
    7
    Thanks
    93
    My Mood
    In Love
    WoW

    Thanks So Much

    Will try To Do One

    lol!
    Surprise Buttsex :





  4. #3
    HolySinX's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Localhost
    Posts
    307
    Reputation
    13
    Thanks
    146
    My Mood
    Fine
    Gawd.. Visual basic...

  5. #4
    icones3's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    186
    Reputation
    10
    Thanks
    27
    My Mood
    Angelic
    lolić lolič

  6. #5
    Julma Henri's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,528
    Reputation
    205
    Thanks
    775
    My Mood
    In Love
    ''QUESTION''

  7. #6
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    Ya,just ask...

  8. #7
    Julma Henri's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,528
    Reputation
    205
    Thanks
    775
    My Mood
    In Love
    it says 4 errors and i did everything in that video!
    can u please say why?

  9. #8
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Maybe it isn't declared?
    I'm back.

  10. #9
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    What operation system and bit you have?

  11. #10
    heydiddledagain's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    357
    Reputation
    19
    Thanks
    425
    My Mood
    Amazed
    Ok, I am still trying to make this work, I wanna make it to where, its not auto- its only repeating mouse clicks , while you hold down the mouse, since these autoclickers work in game, and my macro wont, how could I add this to make , for instance a fully auto pistol,

    ;
    ; AutoHotkey Version: 1.x
    ; Language: English
    ; Platform: Win9x/NT
    ; Author: A.N.Other <myemail@nowhere.com>
    ;
    ; Script Function:
    ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
    ;

    #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
    $Lbutton::
    Loop
    {
    Sleep, 10 ; adjust delay by changing this value.
    ; approximately 10 is the minimum to be used to
    ; reliably detect change button release

    GetKeyState, state, Lbutton, P
    if state = U ; The key has been released, so break out of the loop.
    break

    ; tested by sending a character
    ; send z
    Click

    }
    return
    Look at your comment, now back to mine. Now back at your comment now back to mine. Sadly it isn't mine, but if you stopped trolling and started posting legitimate comments it could look like mine. Look down, back up, where are you? You're scrolling through comments, writing the comment your comment could look like. What did you post? Back at mine, it's a reply saying something you want to hear. Look again the reply is now diamonds. Anything is possible with legit comments.

  12. #11
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    I didn't understand what you said by this:
    Ok, I am still trying to make this work, I wanna make it to where, its not auto- its only repeating mouse clicks , while you hold down the mouse, since these autoclickers work in game, and my macro wont, how could I add this to make , for instance a fully auto pistol,

  13. #12
    MvRouC12's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Stalking Choobs
    Posts
    1,690
    Reputation
    13
    Thanks
    246
    My Mood
    Amused
    Visual Basic FOR THE WIN! ^_^

    [IMG]https://i986.photobucke*****m/albums/ae345/TripleSixPf/Okami-MvRouC12.jpg[/IMG]
    Quote Originally Posted by m_t_h View Post


    By stop playing AVA untill brasilian server comes.

    Do you guys really need to ruin EVERY game?
    [IMG]https://i175.photobucke*****m/albums/w148/Guitarman1157/dontforget.gif[/IMG]

  14. #13
    ksharky8888's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Flirty
    where are your comments girl...tut tut tut

  15. #14
    P0SEID0N's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    KFC
    Posts
    318
    Reputation
    10
    Thanks
    24
    My Mood
    Lurking
    umm shut the fuck up?

  16. #15
    AX3-'s Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    3
    My Mood
    Bored
    Lol what is an auto clicker?

Page 1 of 2 12 LastLast

Similar Threads

  1. [TUT]How to make a simple Auto Clicker!
    By Takari in forum Programming Tutorials
    Replies: 24
    Last Post: 09-20-2010, 07:28 PM
  2. [TUT]How to make a Simple Spammer!
    By DeathHunter in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 30
    Last Post: 05-02-2010, 06:43 AM
  3. [TUT]How to make a simple[Closed]
    By Takari in forum Visual Basic Programming
    Replies: 17
    Last Post: 04-22-2010, 10:49 AM
  4. [TUT]How to make a Simple Progress Bar!
    By DeathHunter in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 04-12-2010, 12:02 AM
  5. *Tut* How To Make A Simple Notepad
    By u1111u in forum Programming Tutorials
    Replies: 2
    Last Post: 01-31-2010, 11:58 PM