📄 自动接收.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3975
ClientLeft = 60
ClientTop = 345
ClientWidth = 5685
LinkTopic = "Form1"
ScaleHeight = 3975
ScaleWidth = 5685
StartUpPosition = 3 '窗口缺省
Begin MSCommLib.MSComm MSComm1
Left = 4920
Top = 1800
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 495
Left = 3000
TabIndex = 2
Top = 2640
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1200
TabIndex = 1
Top = 2640
Width = 1215
End
Begin VB.Timer Timer1
Interval = 500
Left = 4680
Top = 600
End
Begin VB.TextBox Text1
Height = 1815
Left = 960
ScrollBars = 3 'Both
TabIndex = 0
Top = 240
Width = 2775
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Timer1.Enabled = Not Timer1.Enabled
End Sub
Private Sub Command2_Click()
MSComm1.PortOpen = False
End
End Sub
Private Sub Form_Load()
MSComm1.PortOpen = True
End Sub
Private Sub Timer1_Timer()
If MSComm1.InBufferCount > 0 Then
Text1.Text = Text1.Text + MSComm1.Input
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -