This will only work in Visual Basics 6.0, so don't try it in visual basics 2008/2010.
First, right click your project, and click "View Code"
Now, put this in there:
Code:
Private Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
Now it knows what hotkeys are.
Now, make a Timer.
Then add these properties to it:
Open up the timer, and put this in there:
Code:
If GetKeyPress(vbkey.F6) Then
MsgBox("Hot key is working!")
End If
Now you have your hotkeys, but if you want to use them like a spammer, then use this in the timer instead:
Code:
If GetKeyPress(vbkey.F6) Then
Timer2.Enabled = True
End If
If GetKeyPress(vbkey.F7) Then
Timer2.Enabled = False
End If