s的键值是多少?
s的键值是多少?
[解决办法]
不知道你是要键盘扫描码还是ASC码
Private Sub Form_Load()
Me.KeyPreview = True
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Cls
Print "键盘扫描码: ", KeyCode
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
Print "Asc码: ", KeyAscii
End Sub
[解决办法]
要知道那个键的值就按哪个键
[解决办法]
S的Ascii码是83。s的Ascii码是115