📄 keyfile.frm
字号:
VERSION 4.00
Begin VB.Form keymap
Caption = "Key Map Editor"
ClientHeight = 4650
ClientLeft = 4500
ClientTop = 2835
ClientWidth = 4305
Height = 5055
Icon = "KEYFILE.frx":0000
Left = 4440
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4650
ScaleWidth = 4305
Top = 2490
Width = 4425
Begin VB.TextBox Chname
Enabled = 0 'False
Height = 285
Left = 2040
MaxLength = 10
TabIndex = 20
Text = " "
Top = 120
Width = 2175
End
Begin VB.TextBox Text1
Enabled = 0 'False
Height = 285
Left = 2040
MaxLength = 6
TabIndex = 19
Text = " "
Top = 480
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "Close"
Height = 375
Left = 1080
TabIndex = 17
Top = 4200
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "Update"
Height = 375
Left = 1080
TabIndex = 16
Top = 4920
Width = 1695
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 7
Left = 2040
TabIndex = 7
Text = " "
Top = 3720
Width = 2175
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 6
Left = 2040
TabIndex = 6
Text = " "
Top = 3360
Width = 2175
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 5
Left = 2040
TabIndex = 5
Text = " "
Top = 3000
Width = 2175
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 4
Left = 2040
TabIndex = 4
Text = " "
Top = 2640
Width = 2175
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 3
Left = 2040
TabIndex = 3
Text = " "
Top = 2280
Width = 2175
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 2
Left = 2040
TabIndex = 2
Text = " "
Top = 1920
Width = 2175
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 1
Left = 2040
TabIndex = 1
Text = " "
Top = 1560
Width = 2175
End
Begin VB.TextBox subkeys
Enabled = 0 'False
Height = 285
Index = 0
Left = 2040
TabIndex = 0
Text = " "
Top = 1200
Width = 2175
End
Begin Threed.SSCheck ECMode
Height = 375
Left = 120
TabIndex = 22
Top = 720
Width = 615
_version = 65536
_extentx = 1085
_extenty = 661
_stockprops = 78
caption = "EC-S"
enabled = 0 'False
alignment = 1
End
Begin VB.Label Label1
Caption = "Channel Name"
Height = 255
Index = 9
Left = 120
TabIndex = 21
Top = 120
Width = 1815
End
Begin VB.Label Label1
Caption = "Ident"
Height = 255
Index = 8
Left = 120
TabIndex = 18
Top = 480
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #7/F"
Height = 255
Index = 7
Left = 120
TabIndex = 15
Top = 3720
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #6/E"
Height = 255
Index = 6
Left = 120
TabIndex = 14
Top = 3360
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #5/D"
Height = 255
Index = 5
Left = 120
TabIndex = 13
Top = 3000
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #4/C"
Height = 255
Index = 4
Left = 120
TabIndex = 12
Top = 2640
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #3/B"
Height = 255
Index = 3
Left = 120
TabIndex = 11
Top = 2280
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #2/A"
Height = 255
Index = 2
Left = 120
TabIndex = 10
Top = 1920
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #1/9"
Height = 255
Index = 1
Left = 120
TabIndex = 9
Top = 1560
Width = 1815
End
Begin VB.Label Label1
Caption = "Key #0/8"
Height = 255
Index = 0
Left = 120
TabIndex = 8
Top = 1200
Width = 1815
End
End
Attribute VB_Name = "keymap"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
text1 = GOLDCARD.MIds(keyindex).Caption
' process the channel name
memstart% = &H712 + ((keyindex - 1) * 15)
offset% = 0
For a% = 0 To 0
tempid$ = ""
For b% = 0 To 9
l1 = Asc(Mid$(Memmap, memstart% + offset% + b%, 1))
'da% = (((l1 << 4) Or (l1 >> 4)) Xor &H69) And &HFF
Hi = (l1 And &HF0) / 16
lo = (l1 And &HF) * 16
da% = ((Hi Or lo) Xor &H69) And 255
l1 = Asc(Mid$(Memmap, memstart% + offset% + b%, 1))
'da% = (((l1 << 4) Or (l1 >> 4)) Xor &H69) And &HFF
l1 = l1 Xor &H69
Hi = (l1 And &HF0) / 16
lo = (l1 And &HF) * 16
da% = ((Hi Or lo)) And 255
tempid$ = tempid$ + Chr$(da%) 'Mid$(Memmap, memstart% + offset% + b%, 1)
Next b%
Chname = tempid$
offset% = offset% + 7
Next a%
' process the Keys
memstart% = &H201 + ((keyindex - 1) * &H38)
offset% = 0
For a% = 0 To 7
tempid$ = ""
For b% = 0 To 6
tempid$ = tempid$ + Right$("00" + Trim$(Hex$(Asc(Mid$(Memmap, memstart% + offset% + b%, 1)))), 2) + " "
Next b%
subkeys(a%) = tempid$
offset% = offset% + 7
Next a%
If Mid$(Memmap, &H712 + 11 + ((keyindex - 1) * 15), 1) = "\" Then
ECMode = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -