⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keywords.frm

📁 抓取网页中的关键字,内有完整的工程文件,源码,窗体,和编译后的程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   8610
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10605
   LinkTopic       =   "Form1"
   ScaleHeight     =   8610
   ScaleWidth      =   10605
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   7680
      TabIndex        =   6
      Top             =   120
      Width           =   855
   End
   Begin VB.TextBox fr 
      Height          =   375
      Left            =   6840
      TabIndex        =   5
      Text            =   "'>"
      Top             =   120
      Width           =   735
   End
   Begin VB.TextBox fl 
      Height          =   375
      Left            =   5400
      TabIndex        =   4
      Text            =   "keywords="
      Top             =   120
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "保存"
      Height          =   375
      Left            =   9720
      TabIndex        =   3
      Top             =   120
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "提取"
      Height          =   375
      Left            =   8640
      TabIndex        =   2
      Top             =   120
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Height          =   7935
      Left            =   5400
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   1
      Top             =   600
      Width           =   5175
   End
   Begin VB.TextBox Text1 
      Height          =   8535
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   0
      Width           =   5175
   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()
Dim ss As String
Dim where1 As Integer

where1 = InStr(Text1.Text, fl.Text)

If where1 <= 1 Then
Exit Sub
End If

ss = Right(Text1.Text, Len(Text1.Text) - where1 - Len(fl.Text) + 1)


Do

where1 = InStr(ss, fr.Text)

If where1 <= 1 Then
Exit Sub
End If

If Text3.Text = "" Then
Text2.Text = Text2.Text + Mid(ss, 1, where1 - 1) + vbCrLf
Else
Text2.Text = Text2.Text + Mid(ss, 1, where1 - 1) + Text3.Text
End If
where1 = InStr(ss, fl.Text)
ss = Right(ss, Len(ss) - where1 - Len(fl.Text) + 1)


Loop Until where1 <= 1

End Sub

Private Sub Command2_Click()
Open "words.txt" For Binary Access Write As #1
Put #1, 1, Text2.Text
Close #1

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -