I'm trying my hand at making a simple AntiAFK in Visual Basic and would like to know how to use multiple keyboard inputs for it (E.G Pulse's and Sticky's bots) I currently am using these 'important' codes:
Code:
Public Class AntiAFK
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal keyCode As Integer) As Short and
Code:
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
If GetAsyncKeyState(17) And GetAsyncKeyState(83) Then
Me.Close() I am told this works, but I am not sure I am using the function right. Any advice?
Similar Threads: