如何能够快速的增长博客的点击量呢~
我用的是Webbrowser 控件,访问要刷点击的文章。定时器定时刷新,同时清除本地的cookie。就可以实现刷点击啦。
Public webbrowNum As Integer = 0Public webbrowUrl As String = ""Public articleList As List(Of String) = New List(Of String)Private Declare Function GetUrlCacheEntryInfo lib "wininet.dll" Alias "GetUrlCacheEntryInfoA" (ByVal sUrlname As String,ByRef lpCacheEntryInfo As IntPtr,ByRef lpDWCacheEntryInfoBufferSize As IntPtr) As IntegerPrivate Declare Function DeleteUrlCacheEntry lib "wininet.dll" Alias "DeleteUrlCacheEntryA" (ByVal lpszUrlname As String) As Integer
Private Sub Form1_Load(sender As Object,e As EventArgs) Handles MyBase.Load articleList.Add("http://blog.csdn.net/u013162930/article/details/47606875") articleList.Add("http://blog.csdn.net/u013162930/article/details/47396257") articleList.Add("http://blog.csdn.net/u013162930/article/details/48316613") articleList.Add("http://blog.csdn.net/ld_____/article/details/48133523") Dim skipInterval As Integer = 2000 Webbrowser1.ScriptErroRSSuppressed = True Webbrowser1.Navigate("http://blog.csdn.net/u013162930?viewmode=List") Webbrowser1.Refresh() Timer1.Interval = skipInterval Timer1.Enabled = TrueEnd Sub
Private Sub Timer1_Tick(sender As Object,e As EventArgs) Handles Timer1.Tick webbrowUrl = articleList(webbrowNum) webbrowNum = webbrowNum + 1 If webbrowNum >= articleList.Count Then webbrowNum = 0 End If intervIEwUrl()End Sub
Private Sub intervIEwUrl() TextBox1.Text = webbrowUrl Webbrowser1.Navigate(webbrowUrl) Webbrowser1.Refresh() Application.DoEvents() '清除cookie If Webbrowser1.document.cookie IsNot nothing Then Webbrowser1.document.cookie.Remove(0,Webbrowser1.document.cookie.Count) End If Application.DoEvents() If (InCache("http://blog.csdn.net")) Then DeleteCacheURL("http://blog.csdn.net") End IfEnd Sub
学好技术,写好博文才是王道。
不然也不好意思多刷啊~
以上是内存溢出为你收集整理的VB.Net刷点击全部内容,希望文章能够帮你解决VB.Net刷点击所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)