[HELP][VB.NET] Hot keys..
Ok, I recently started to learn VB.NET. Going to learn some harder languages later, when I know VB like English :P
Anyway, I made a flooder that will send the message you write in a textbox over and over again. I tried making hot keys for it (Needed hot keys for it to make it spam faster), and it kinda worked xD It works when I press the hot keys with the application window selected, but once I select another window they hot keys wont work. Understand? XD
Here's the code for the hot keys, if you want to whole code I'll attach a .txt or just post it here because I'm releasing it when it's done anyway :P
For the start button :
Code:
Private Sub cmdStart_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = System.Windows.Forms.Keys.F11 Then
cmdStart.Enabled = True
System.Windows.Forms.SendKeys.Send(txtFlood.Text)
System.Windows.Forms.SendKeys.Send("{enter}")
cmdCount.Text = Val(cmdCount.Text) + Val(1)
End If
End Sub
For the stop button :
Code:
Private Sub cmdStop_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = System.Windows.Forms.Keys.F12 Then
Timer1.Enabled = False
MsgBox("Flooder Successfully Stopped!", MsgBoxStyle.Exclamation)
cmdStop.Enabled = False
cmdStart.Enabled = True
End If
End Sub
I think I found the error now.. :P Could it be because it's System.Windows.Forms.Keys? So it wasn't as easy as I thought then.. xD