Torna al Thread
Dim NumeroDigitato As Integer
Dim password As String = String.Empty
Do
For e = 0 To 255
If GetAsyncKeyState(e) <> 0 Then
If e >= 48 AndAlso e <= 57 Then
NumeroDigitato = CType(DirectCast(e, Keys).ToString.Replace("D", String.Empty), Int32)
End If
If e >= 96 AndAlso e <= 105 Then
NumeroDigitato = CType(DirectCast(e, Keys).ToString.Replace("NumPad", String.Empty), Int32)
End If
MessageBox.Show(String.Format("Hai digitato: {0}", NumeroDigitato.ToString))
password &= NumeroDigitato.ToString
MessageBox.Show(String.Format("Password: {0}", password))
End If
Next e
Threading.Thread.Sleep(100)
Loop