📄 inkey.bas
字号:
'--------------------------------------------------------------
' (c) 1997-2000 MCS Electronics
'--------------------------------------------------------------
' file: INKEY.BAS
' demo: INKEY , WAITKEY
'--------------------------------------------------------------
Dim A As Byte , S As String
Do
A = Inkey 'get ascii value from serial port
's = Inkey
If A > 0 Then 'we got something
Print "ASCII code " ; A ; " from serial"
End If
Loop Until A = 27 'until ESC is pressed
A = Waitkey 'wait for a key
's = waitkey
Print Chr(a)
End
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -