📄 form1.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
Caption = "显示窗体"
ClientHeight = 6450
ClientLeft = 4500
ClientTop = 2115
ClientWidth = 7800
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 6450
ScaleWidth = 7800
Begin VB.Frame Frame1
Caption = "当前坐标的状态"
Height = 1350
Left = 135
TabIndex = 9
Top = 4455
Width = 5295
Begin VB.TextBox Text3
Enabled = 0 'False
Height = 270
Left = 3330
TabIndex = 20
Text = "Text3"
Top = 885
Width = 1815
End
Begin VB.TextBox Text2
Enabled = 0 'False
Height = 270
Left = 3330
TabIndex = 18
Text = "Text2"
Top = 555
Width = 1830
End
Begin VB.TextBox HSM
Enabled = 0 'False
Height = 270
Left = 3330
TabIndex = 16
Text = "Text1"
Top = 225
Width = 1800
End
Begin VB.TextBox HXCGtxt
Enabled = 0 'False
Height = 270
Left = 1125
TabIndex = 13
Text = "Text1"
Top = 600
Width = 1260
End
Begin VB.TextBox HXZLtxt
Height = 270
Left = 1125
TabIndex = 11
Text = "-90"
Top = 255
Width = 1245
End
Begin VB.Label Label13
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BO:"
Height = 180
Left = 2940
TabIndex = 19
Top = 945
Width = 360
End
Begin VB.Label Label12
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "AO:"
Height = 180
Left = 2940
TabIndex = 17
Top = 600
Width = 360
End
Begin VB.Label Label11
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "航速:"
Height = 180
Left = 2775
TabIndex = 15
Top = 255
Width = 540
End
Begin VB.Label Flable
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "左转向"
Height = 180
Left = 285
TabIndex = 14
Top = 1035
Width = 540
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "航向传感:"
Height = 180
Left = 210
TabIndex = 12
Top = 645
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "航向指令:"
Height = 180
Left = 240
TabIndex = 10
Top = 300
Width = 900
End
End
Begin VB.CommandButton Command4
Caption = "原代码拆装"
Height = 345
Left = 2220
TabIndex = 8
Top = 3105
Width = 1305
End
Begin VB.TextBox HdUnit
Height = 300
Left = 1365
TabIndex = 5
Text = "1000"
Top = 3165
Width = 780
End
Begin MSComDlg.CommonDialog CD1
Left = 6810
Top = 525
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command2
Caption = "……"
Height = 330
Left = 5325
TabIndex = 4
Top = 5790
Width = 690
End
Begin VB.TextBox ORGTXT
Height = 285
Left = 1365
TabIndex = 3
Top = 5805
Width = 3900
End
Begin VB.ListBox List1
Height = 2940
Left = 75
TabIndex = 1
Top = 60
Width = 7665
End
Begin VB.CommandButton Command1
Caption = "测试按钮"
Height = 360
Left = 6585
TabIndex = 0
Top = 5745
Width = 900
End
Begin VB.Frame Frame2
Height = 1035
Left = 105
TabIndex = 21
Top = 3420
Width = 5625
Begin VB.TextBox Pointx
Height = 315
Left = 945
TabIndex = 30
Text = "115.886"
Top = 165
Width = 870
End
Begin VB.TextBox Pointy
Height = 315
Left = 1935
TabIndex = 29
Text = "-183.244"
Top = 180
Width = 1080
End
Begin VB.TextBox Pointz
Height = 315
Left = 3120
TabIndex = 28
Text = "-1"
Top = 180
Width = 990
End
Begin VB.TextBox MinQtxt
Height = 270
Left = 1050
TabIndex = 24
Top = 585
Width = 825
End
Begin VB.TextBox MinJtxt
Height = 270
Left = 2970
TabIndex = 23
Top = 615
Width = 930
End
Begin VB.TextBox MinJStxt
Height = 285
Left = 4830
TabIndex = 22
Top = 570
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "当前坐标"
Height = 180
Left = 105
TabIndex = 31
Top = 225
Width = 720
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "同航向Q度:"
Height = 180
Left = 60
TabIndex = 27
Top = 630
Width = 990
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "加速灵敏度:"
Height = 180
Left = 1920
TabIndex = 26
Top = 660
Width = 1080
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "最小点距:"
Height = 180
Left = 3960
TabIndex = 25
Top = 645
Width = 900
End
End
Begin VB.Label BL
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "W"
Height = 180
Index = 3
Left = 5760
TabIndex = 35
Top = 4455
Width = 90
End
Begin VB.Label BL
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "S"
Height = 180
Index = 2
Left = 6675
TabIndex = 34
Top = 5310
Width = 90
End
Begin VB.Label BL
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "E"
Height = 180
Index = 1
Left = 7530
TabIndex = 33
Top = 4455
Width = 90
End
Begin VB.Label BL
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "N"
Height = 180
Index = 0
Left = 6660
TabIndex = 32
Top = 3615
Width = 90
End
Begin VB.Line cmdLine
X1 = 6615
X2 = 7695
Y1 = 4545
Y2 = 4545
End
Begin VB.Shape PPshape
Height = 2000
Left = 5715
Shape = 3 'Circle
Top = 3555
Width = 2000
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "脚本代码地址:"
Height = 180
Left = 120
TabIndex = 7
Top = 5895
Width = 1260
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "原代码划段数:"
Height = 180
Left = 105
TabIndex = 6
Top = 3240
Width = 1260
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "暂停后选择列表框 按空格继续。"
Height = 180
Left = 1380
TabIndex = 2
Top = 6180
Width = 2610
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
List1.Clear
If Len(ORGTXT.Text) <> 0 Then Call PreReader(ORGTXT.Text)
End Sub
Private Sub Command2_Click()
With CD1
.DialogTitle = "选择脚本文件"
.Filter = "脚本语言(*.set)|*.set|文本文件(*.txt)|*.txt|全部文件(*.*)|*.*"
.FilterIndex = 2
.ShowOpen
ORGTXT.Text = .FileName
End With
End Sub
Private Sub Command4_Click()
Call DiscFile
MsgBox "拆装完毕"
End Sub
Private Sub Form_Load()
Show
Dim t As String
t = Space(255)
Call GetPrivateProfileString("configini", "Q", "10", t, 255, ProgramFile)
MinQ = CDbl(t)
Call GetPrivateProfileString("configini", "J", "10", t, 255, ProgramFile)
MinJ = CDbl(t)
Call GetPrivateProfileString("configini", "JS", "0.1", t, 255, ProgramFile)
MinJS = CDbl(t)
MinQtxt.Text = Trim(Str(MinQ))
MinJtxt.Text = Trim(Str(MinJ))
MinJStxt.Text = Trim(Str(MinJS))
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call WritePrivateProfileString("configini", "Q", "10", ProgramFile)
Call WritePrivateProfileString("configini", "J", "10", ProgramFile)
Call WritePrivateProfileString("configini", "JS", "0.1", ProgramFile)
End Sub
Private Sub HXZLtxt_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then SendKeys ("{tab}")
End Sub
Private Sub HXZLtxt_Validate(Cancel As Boolean)
Flable.Caption = InitePan(PPshape, cmdLine)
End Sub
Private Sub List1_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 And PauseTrue Then
Call ScriptReader(ReadScriptFile, MidRangid + 1)
PauseTrue = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -