?? commessage2.frm
字號:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Form1
Caption = "控制軟件"
ClientHeight = 1995
ClientLeft = 60
ClientTop = 450
ClientWidth = 7320
LinkTopic = "Form1"
ScaleHeight = 1995
ScaleWidth = 7320
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "退出"
Height = 375
Left = 5640
TabIndex = 13
Top = 1320
Width = 1215
End
Begin VB.Frame Frame1
Caption = "COM口選擇"
Height = 615
Left = 480
TabIndex = 8
Top = 1200
Width = 3375
Begin VB.OptionButton Option
Caption = "COM4"
Height = 255
Index = 3
Left = 2520
TabIndex = 12
Top = 240
Width = 735
End
Begin VB.OptionButton Option
Caption = "COM3"
Height = 255
Index = 2
Left = 1680
TabIndex = 11
Top = 240
Width = 735
End
Begin VB.OptionButton Option
Caption = "COM2"
Height = 255
Index = 1
Left = 960
TabIndex = 10
Top = 240
Width = 735
End
Begin VB.OptionButton Option
Caption = "COM1"
Height = 255
Index = 0
Left = 120
TabIndex = 9
Top = 240
Width = 735
End
End
Begin MSCommLib.MSComm MSComm1
Left = 4560
Top = 1200
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
CommPort = 12
DTREnable = -1 'True
RThreshold = 1
BaudRate = 19200
End
Begin VB.CommandButton Command
Caption = "設備8"
Height = 375
Index = 7
Left = 5520
TabIndex = 7
Top = 600
Width = 1215
End
Begin VB.CommandButton Command
Caption = "設備7"
Height = 375
Index = 6
Left = 3720
TabIndex = 6
Top = 600
Width = 1215
End
Begin VB.CommandButton Command
Caption = "設備6"
Height = 375
Index = 5
Left = 1920
TabIndex = 5
Top = 600
Width = 1215
End
Begin VB.CommandButton Command
Caption = "設備5"
Height = 375
Index = 4
Left = 120
TabIndex = 4
Top = 600
Width = 1215
End
Begin VB.CommandButton Command
Caption = "設備4"
Height = 375
Index = 3
Left = 5520
TabIndex = 3
Top = 120
Width = 1215
End
Begin VB.CommandButton Command
Caption = "設備3"
Height = 375
Index = 2
Left = 3720
TabIndex = 2
Top = 120
Width = 1215
End
Begin VB.CommandButton Command
Caption = "設備2"
Height = 375
Index = 1
Left = 1920
TabIndex = 1
Top = 120
Width = 1215
End
Begin VB.CommandButton Command
Caption = "設備1"
Height = 375
Index = 0
Left = 120
TabIndex = 0
Top = 120
Width = 1215
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 7
Left = 6840
Shape = 3 'Circle
Top = 600
Width = 375
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 6
Left = 5040
Shape = 3 'Circle
Top = 600
Width = 375
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 5
Left = 3240
Shape = 3 'Circle
Top = 600
Width = 375
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 4
Left = 1440
Shape = 3 'Circle
Top = 600
Width = 375
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 3
Left = 6840
Shape = 3 'Circle
Top = 120
Width = 375
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 2
Left = 5040
Shape = 3 'Circle
Top = 120
Width = 375
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 1
Left = 3240
Shape = 3 'Circle
Top = 120
Width = 375
End
Begin VB.Shape Shape
BackColor = &H00C0FFC0&
BackStyle = 1 'Opaque
BorderColor = &H00000000&
BorderStyle = 0 'Transparent
FillColor = &H00C0FFC0&
Height = 375
Index = 0
Left = 1440
Shape = 3 'Circle
Top = 120
Width = 375
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim TxData As Byte
Dim OutData(1) As Byte
Dim Buf As Integer
Private Sub Command_Click(Index As Integer)
TxData = Buf
If Shape(Index).BackColor = &HC0FFC0 Then '該數據是否被核取?
TxData = TxData Or 2 ^ Index '若核取則將改位置的輸出變量值設定為
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -