📄 createpwd.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form FrmCreatePWD
BorderStyle = 1 'Fixed Single
Caption = "字典"
ClientHeight = 2145
ClientLeft = 45
ClientTop = 435
ClientWidth = 3270
Icon = "CreatePWD.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 2145
ScaleWidth = 3270
Begin VB.TextBox TxtQQ
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF8080&
Height = 375
Left = 1320
MaxLength = 9
TabIndex = 8
Text = "10000"
Top = 120
Width = 1815
End
Begin VB.CommandButton CmdCancel
Caption = "退出"
BeginProperty Font
Name = "华文行楷"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2400
TabIndex = 6
Top = 1680
Width = 735
End
Begin VB.TextBox TxtEnd
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF8080&
Height = 375
Left = 1320
MaxLength = 10
TabIndex = 3
Text = "100"
Top = 1080
Width = 1815
End
Begin VB.TextBox TxtBegain
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF8080&
Height = 375
Left = 1320
MaxLength = 10
TabIndex = 2
Text = "0"
Top = 600
Width = 1815
End
Begin VB.CommandButton CmdOK
Caption = "开始"
BeginProperty Font
Name = "华文行楷"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1440
TabIndex = 5
Top = 1680
Width = 735
End
Begin MSComDlg.CommonDialog ComDialog
Left = 120
Top = 2760
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton CmdFile
Caption = "目标…"
Default = -1 'True
BeginProperty Font
Name = "华文行楷"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 4
Top = 1680
Width = 1095
End
Begin VB.Line Line1
X1 = 0
X2 = 3240
Y1 = 1560
Y2 = 1560
End
Begin VB.Label Label3
Caption = "QQ号码:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 7
Top = 120
Width = 1335
End
Begin VB.Label Label2
Caption = "终密码:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 0
Top = 1080
Width = 1335
End
Begin VB.Label Label1
Caption = "始密码:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 1
Top = 600
Width = 1455
End
End
Attribute VB_Name = "FrmCreatePWD"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCancel_Click()
Unload Me
End Sub
Private Sub CmdFile_Click()
ComDialog.Filter = "所有文件 (*.*)|*.*|文本文档 (*.txt)|*.txt|"
' 指定缺省的过滤器
ComDialog.FilterIndex = 2
ComDialog.ShowOpen
End Sub
Private Sub CmdOK_Click()
On Error GoTo wrong
CmdCancel.Enabled = False
Dim I As Long
Dim B As Long
Dim E As Long
B = TxtBegain.Text
E = TxtEnd.Text
Open ComDialog.FileName For Output As #1
For I = B To E
Print #1, TxtQQ.Text & "----" & I
Next I
Reset
MsgBox "任务完成!", vbInformation, "恭喜!"
CmdCancel.Enabled = True
Exit Sub
wrong:
If Err.Number = 75 Then
MsgBox "请先确定目标文件!", vbCritical, "错误"
CmdFile.SetFocus
End If
CmdCancel.Enabled = True
End Sub
Private Sub TxtQQ_KeyPress(KeyAscii As Integer)
If Chr(KeyAscii) = vbBack Then Exit Sub
If Not IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
MsgBox "QQ号码只能为数字!", vbInformation + vbOKOnly, "提示"
End If
End Sub
Private Sub TxtBegain_KeyPress(KeyAscii As Integer)
If Chr(KeyAscii) = vbBack Then Exit Sub
If Not IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
MsgBox "请输入数字!", vbInformation + vbOKOnly, "提示"
End If
End Sub
Private Sub TxtEnd_KeyPress(KeyAscii As Integer)
If Chr(KeyAscii) = vbBack Then Exit Sub
If Not IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
MsgBox "请输入数字!", vbInformation + vbOKOnly, "提示"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -