so i made it to work if minimized and the code i have right now is this:
on the timer
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timerval.Tick
My.Computer.Keyboard.SendKeys("z")
End Sub
This spams Z, but with manual INTERVAL, to random the interval i tryed this
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timerval.Tick
Dim Ran As Random
Dim num As Integer
Ran = New Random
num = Ran.Next(500, 2000)
timerval.Interval = num.ToString
My.Computer.Keyboard.SendKeys("z")
End Sub
cant get it to random the interval bettwen 60 milliseconds and 200 milliseconds (the "500, 2000" was a test)
any ideas?