Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown 'MessageBox.Show(e.KeyCode) 'bla bla bla End Sub
Private Function AutoSendKey(ByVal keystroke As String, ByVal delay As Integer) System.Threading.Thread.Sleep(delay) My.Computer.Keyboard.SendKeys(keystroke, True) End Function
SendInput
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)