Imports System.Windows.Forms.SendKeys
Imports System.Data
Imports System.Data.OleDb
Imports System.Runtime.InteropServices
Public Class Form1
Private Declare Function GetAsyncKeyState Lib "User32" (ByVal vkey As Integer) As Short
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If GetAsyncKeyState(Keys.Insert) Then
If Me.Visible = True Then
Me.Visible = False
Exit Sub
End If
If Me.Visible = False Then
Me.Visible = True
Exit Sub
End If
End If
If GetAsyncKeyState(Keys.Delete) Then
Me.Close()
End If
End Sub
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
End Class
