Thanks for you replies, I did a little more digging and came up with this
A timer which locks the code on:
Code:
Private Sub Timer2_Timer()
If Timer2.Enabled = True Then
Call Command8_Click
End If
End Sub
and Option buttons for on:
Code:
Private Sub Option2_Click()
Timer2.Enabled = True
End Sub
And Off
Code:
Private Sub Option1_Click()
Timer2.Enabled = False
If Hooked = True Then
WriteProcessMemory ProcessHandle, &H555216, 0, 4, 0&
End If
End Sub
The off button turns off the timer and then sets the code back to its default value
You can lock this thread now if you see no use for it being open.