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.
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
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
