How To Make An AFK Bot

Posts 1–10 of 10 · Page 1 of 1
How To Make An AFK Bot
I will not paste the code as you learn nothing from copy & paste!

Take your time to understand the code.

This is a simple tutorial.



This is what the final project will look like(You can add extra features)



Add:
2 Timers
2 Labels


1.

What to put for "Import

2.

This allows you to use your hotkeys

3.

These are the keys to show and close your Menu!

Insert Key = Show/Hide

Delete Key = Close

4.
Code:
 Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
        If GetAsyncKeyState(Keys.NumPad0) Then
            Timer2.Enabled = True
            Exit Sub
        End If
        If Me.Visible = False Then
            Me.Visible = True
            Exit Sub
        End If


        If GetAsyncKeyState(Keys.NumPad1) Then
            Timer2.Enabled = False
        End If
       
        Try
            Interaction.AppActivate("Engine.exe")
            My.Computer.Keyboard.SendKeys("W")
            My.Computer.Keyboard.SendKeys("A")
            My.Computer.Keyboard.SendKeys("S")
            My.Computer.Keyboard.SendKeys("D")
        Catch
        
        End Try
        ' AFK move section
        Try
            Interaction.AppActivate("Engine.exe")
            My.Computer.Keyboard.SendKeys("W")
            My.Computer.Keyboard.SendKeys("A")
            My.Computer.Keyboard.SendKeys("S")
            My.Computer.Keyboard.SendKeys("D")
        Catch
            
        End Try
       

    End Sub
These are the keys that a entered by the computer making it an AFK Bot.

Notice these keys are made for Engine.exe(Combat Arms)

I use this for that game , you can change the keys to what you like.


This is just one of many ways. The code is mixed up on purpose so you can't just copy and paste. Read and study the code then put it in its rightful place.

-Decompile

@Decompile READ YOUR WALL!
Quote Originally Posted by Dappy View Post
@Decompile READ YOUR WALL!
You read your wall :P
thanks !!

- 10 characters -
this will only do it ingame it wont switch to a new game
nice tutorial
OMG i wish there was one where we could have CA minimized
The Menu Code should be something like this:
Code:
        If GetAsyncKeyState(Keys.Insert) Then
            If Me.Visible = True Then
                Me.Visible = False
                Exit Sub
            End If
        End If
        If GetAsyncKeyState(Keys.Insert) Then
            If Me.Visible = False Then
                Me.Visible = True
                Exit Sub
            End If
        End If
    End Sub
and the timer needs to be Enabled - True .
i like using buttons more this jus seems like a empty form with hotkey plus wats the hide/show part bout?
plus wats thier to study u take timer2_click and paste it in
and why r u send wasd
and then sending wasd agian
if u set the inreval it will send it agian without having to type it agian
to change it to any other game find this code

Interaction.AppActivate("Engine.exe")

And change Engine.ece

Example :

Interaction.AppActivate("PBlackout.exe") - projectblackout procces game
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?