I personally use RegisterHotkey (since it only gets keyboard input whenever it is pressed rather than running a timer every tenth of a second).
Originally Posted by Villian™
But GetASyncKeyState is easier to do and does the same thing:
Add a timer and add this code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
This code will work even if your playing CA and your tapper is inactive.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If GetAsyncKeyState(Keys.F1) Then