• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Page 1 of 2 12 LastLast
    Results 1 to 10 of 19
    1. #1
      Jr.Coder
      Learning to hack games!
       
      Coding
       
      Anomxus's Avatar
      Join Date
      Jun 2012
      Posts
      59
      Thanks (-->)
      18
      Thanks (<--)
      12

      [Tutorial] Efficient TriggerBot [Visual Basic] *Fixed a bug*

      Silent VPN
      Im going to show you how you can make your own trigger bot.
      This bot dosen't take screenshots, it scans the mouse position for colors (Super efficient).

      First open up a new project, call it whatever you want.

      Then add:
      2 Pictureboxes.
      1 NumbericUpDown.
      1 Timer.
      2 Button.
      2 Labels.

      Double click the toggle bot button.
      Write this code in;
      Code:
      Timer1.Enabled = Not Timer1.Enabled
      ^Space efficient, don't you think?

      Moving on...

      Step 3.

      Open the timer code.
      Write this in;
      Code:
      Try
            Dim BMP As New Drawing.Bitmap(1, 1)
            Dim GFX As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(BMP)
            GFX.CopyFromScreen(New Drawing.Point(MousePosition.X, MousePosition.Y), _
            New Drawing.Point(0, 0), BMP.Size)
            Dim Pixel As Drawing.Color = BMP.GetPixel(0, 0)
            Me.PictureBox2.BackColor = Pixel
            If (Pixel.R &lt;= PictureBox1.BackColor.R + NumericUpDown1.Value) And (Pixel.R &gt;= PictureBox1.BackColor.R - NumericUpDown1.Value) Then
              If (Pixel.B &lt;= PictureBox1.BackColor.B + NumericUpDown1.Value) And (Pixel.B &gt;= PictureBox1.BackColor.B - NumericUpDown1.Value) Then
                If (Pixel.G &lt;= PictureBox1.BackColor.G + NumericUpDown1.Value) And (Pixel.G &gt;= PictureBox1.BackColor.G - NumericUpDown1.Value) Then
                  LeftClick()
                End If
              End If
            End If
          Catch ex As Exception
            Timer1.Stop()
            MsgBox("Error: " &amp; ex.Message)
          End Try
      This code is getting the color of the mouse position and both paste the color to the picturebox and checking if its similar to your coosen color (which we havent done yet. You should have an errors but were going to fix them).

      Step 4.
      Declare MouseEventF.

      Put this bit of code after "Public Class Form1"
      Code:
      Public Const MOUSEEVENTF_LEFTDOWN = &amp;H2
        Public Const MOUSEEVENTF_LEFTUP = &amp;H4
        Private Const MOUSEEVENTF_RIGHTDOWN = &amp;H8
        Private Const MOUSEEVENTF_RIGHTUP = &amp;H10
      
        Declare Function apimouse_event Lib "user32.dll" Alias "mouse_event" (ByVal dwFlags As Int32, ByVal dX As Int32, ByVal dY As Int32, ByVal cButtons As Int32, ByVal dwExtraInfo As Int32) As Boolean
      Step 5.
      Create the "Click Sub".

      Write this bit of code;
      Code:
      Private Sub LeftClick()
          Call apimouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
          Call apimouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
        End Sub
      Step 6.

      Almost done!

      On the secound button, write:

      Code:
      Dim ColorPre As New ColorDialog
          ColorPre.ShowDialog()
          PictureBox1.BackColor = ColorPre.Color
      CONGRATULATIONS YOU HAVE MADE AN EFFICIENT TRIGGERBOT!

      The NumericUpDown is to check similar colors to the selected color. Hmm... Not the best way of explaining it :/
      [Tutorial] Efficient TriggerBot [Visual Basic] *Fixed a bug*

    2. #2
      Coder
      Learning to hack games!
       
      Coding
       
      Helios's Avatar
      Join Date
      May 2012
      Location
      Denmark
      Posts
      209
      Thanks (-->)
      24
      Thanks (<--)
      34
      Quote Originally Posted by Anomxus
      Add my post here.
      Eh... What?

    3. #3
      Jr.Coder
      Learning to hack games!
       
      Coding
       
      Anomxus's Avatar
      Join Date
      Jun 2012
      Posts
      59
      Thanks (-->)
      18
      Thanks (<--)
      12
      Fleep is going to post my tut here, iv'e had some problems.
      [Tutorial] Efficient TriggerBot [Visual Basic] *Fixed a bug*

    4. #4
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      743
      Great addition Anomxus, Im sure many will benefit from this. sorry about the delay in posting.

      Once you have 5+ posts you will be able to post your own links.

      Fleep

    5. #5
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Anunymux's Avatar
      Join Date
      Jun 2012
      Posts
      9
      Thanks (-->)
      0
      Thanks (<--)
      0
      Nice thank you for this post! I will definitely try this.

      Can I get vac banned if I use this?

    6. #6
      Coder
      Learning to hack games!
       
      Coding
       
      Helios's Avatar
      Join Date
      May 2012
      Location
      Denmark
      Posts
      209
      Thanks (-->)
      24
      Thanks (<--)
      34
      Quote Originally Posted by Anunymux
      Nice thank you for this post! I will definitely try this.

      Can I get vac banned if I use this?
      No, it's 100% VAC secure! The reason is that it doesn't modify any memory, it simply looks for a color under the cursor.

    7. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Anunymux's Avatar
      Join Date
      Jun 2012
      Posts
      9
      Thanks (-->)
      0
      Thanks (<--)
      0
      Okay I tried it but I can not get it to work. First I start the program, then I push the second button to chose a color. Then I click on the first button and nothing happens. What could I made wrong?

    8. #8
      Jr.Coder
      Learning to hack games!
       
      Coding
       
      Anomxus's Avatar
      Join Date
      Jun 2012
      Posts
      59
      Thanks (-->)
      18
      Thanks (<--)
      12
      Quote Originally Posted by Anunymux
      Okay I tried it but I can not get it to work. First I start the program, then I push the second button to chose a color. Then I click on the first button and nothing happens. What could I made wrong?
      Does it crash?
      [Tutorial] Efficient TriggerBot [Visual Basic] *Fixed a bug*

    9. #9
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Anunymux's Avatar
      Join Date
      Jun 2012
      Posts
      9
      Thanks (-->)
      0
      Thanks (<--)
      0
      No no it works great with no error messages. Whether it doesn´t shoot or it shoots all the time :/


    10. #10
      Jr.Coder
      Learning to hack games!
       
      Coding
       
      Anomxus's Avatar
      Join Date
      Jun 2012
      Posts
      59
      Thanks (-->)
      18
      Thanks (<--)
      12
      Silent VPN
      Quote Originally Posted by Anunymux
      No no it works great with no error messages. Whether it doesn´t shoot or it shoots all the time :/
      Oh i think i spotted the problem.
      Try reverse the bot.
      [Tutorial] Efficient TriggerBot [Visual Basic] *Fixed a bug*

    Page 1 of 2 12 LastLast

    Similar Game Hacker Threads

    1. [Source Code] Create a Hack with Visual Basic [MODULE ]
      By Brutalon in forum Visual Basic
      Replies: 4
      Last Post: 11-14-2014, 01:42 PM
    2. [Help] Trying to use a pointer for my trainer in Visual basic 2010?
      By Soulreaper93 in forum Visual Basic
      Replies: 3
      Last Post: 04-06-2014, 02:39 PM
    3. [Help] Bypass Punkbuster with Visual Basic?
      By Vultrax in forum Visual Basic
      Replies: 4
      Last Post: 01-02-2014, 09:54 AM
    4. [Tutorial]Visual Studio Linker Errors
      By Syperus in forum C/C++
      Replies: 7
      Last Post: 12-25-2013, 07:24 AM
    5. [Help] multi-level pointers in the basic Assault Cube tutorial pt3
      By IdontMind in forum GH Tutorials Help
      Replies: 4
      Last Post: 01-07-2013, 10:09 AM