- 分享
- 0
- 人气
- 0
- 主题
- 62
- 帖子
- 6367
- UID
- 51295
- 积分
- 3715
- 阅读权限
- 21
- 注册时间
- 2006-11-21
- 最后登录
- 2022-1-19
- 在线时间
- 3699 小时
|
我在做3个Project,都是有问题的……
第一个 - GIGALEON网路商店回帖查询器- If Exists("html") Then Kill("html")
- My.Computer.Network.DownloadFile("http://www.jbtalks.cc/forum-682-1.html", "html")
- Dim SR As New StreamReader("html")
- Dim line As String() = SR.ReadToEnd.Split(vbCrLf)
- For i As Integer = line(i).ToString.Contains("<tr class=""category""><td> </td><td colspan=""6"">论坛主题</td></tr>") _
- To line(i).ToString.Contains("正在浏览此论坛的会员")
- If firstopen = 0 Then
- firstopen = 1
- MsgBox("First Open Detected")
- ElseIf data <> line(i) Then
- Messanger.Show()
- MsgBox("data detected")
- ElseIf data = line(i) Then
- MsgBox("data are same")
- End If
- data = line(i)
- MsgBox(line(i))
- Next
- SR.Dispose()
复制代码 第二个 - VISTA RATING EDITOR- Dim filename As String
- Dim filelist As String() = System.IO.Directory.GetFiles(path)
- For i As Integer = 0 To filelist.Count - 1
- If i = filelist.Count - 1 Then
- filename = filelist(i).ToString
- End If
- Next
- 'On Error GoTo nochecked
- Dim SR As New System.IO.StreamReader(filename)
- Dim data As String = SR.ReadToEnd
- Dim line As String() = data.Split(vbCrLf)
- For i As Integer = 0 To line.Count - 1
- If line(i).ToString.Contains("<SystemScore>") Then
- Dim textview As String = line(i).ToString
- textview.Replace(" <SystemScore>", "")
- textview.Replace("</SystemScore>", "")
- MsgBox(textview)
- TextBox6.Text = textview.ToString
- End If
- Next
- Exit Sub
- nochecked:
- MsgBox("Error,Please Run Windows Experience Index Once To Edit Score", MsgBoxStyle.Critical)
复制代码 第三个 - Youtube Video Downloader Download Link Genarator- Public Sub GetDownloadLink()
- Dim searchkeyword As String = "var fullscreenUrl = '/watch_fullscreen?fs=1&vq=None&"
- If AddNewDownload.TextBox1.Text.StartsWith("http://") Then
- videourl = AddNewDownload.TextBox1.Text
- Else
- videourl = ("http://www.youtube.com/watch?v=" & AddNewDownload.TextBox1.Text)
- End If
- Dim url As String = videourl
- Dim Request As HttpWebRequest = WebRequest.Create(url)
- On Error GoTo timeout
- Dim Response As HttpWebResponse = Request.GetResponse
- Dim SR As StreamReader
- SR = New StreamReader(Response.GetResponseStream)
- Dim sourcedata As String = SR.ReadToEnd
- Dim line As String() = sourcedata.Split(vbCrLf)
- For i As Integer = 0 To line.Count - 1
- If line(i).ToString.Contains(searchkeyword) Then
- sourcedata = line(i)
- sourcedata.Replace(searchkeyword, "")
- sourcedata = "http://www.youtube.com/get_video.php?video_id=" & sourcedata
- TextBox1.Text = sourcedata
- End If
- Next
- Exit Sub
- timeout:
- MsgBox("网路错误,请稍后再重试", MsgBoxStyle.Critical)
- End Sub
复制代码 这三个都跑不动,我想其中一定有什么问题……可是我看来看去都看不出,气死了 |
|