how do I make my proxies auto refresh every certain interval, i also have ProxyRefresh as a link label
Code:Public Sub RefreshProxies() Try Dim oldCount As Integer = Proxies.Count Proxies.Clear() If Not File.Exists(My.Settings.ProxySource) Then Using http As New Net.WebClient Dim r As String = http.DownloadString(New Uri(My.Settings.ProxySource)) If Regex.IsMatch(r, "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:[0-9]{1,5}") Then For Each m As Match In Regex.Matches(r, "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:[0-9]{1,5}") Dim url As String = m.Groups(0).ToString Proxies.Add(url) Next Proxies = Proxies.Distinct.ToList End If End Using Else Proxies.Clear() Proxies = File.ReadAllLines(My.Settings.ProxySource).ToList ProxyCount.Text = Proxies.Count.ToString("N0") End If Catch ex As Exception Debug.Print(ex.Message) Finally ProxyCount.Text = Proxies.Count.ToString("N0") End Try End Sub
Thread: someone help me baby coding .net
Results 1 to 8 of 8
-
07-16-2013
-
-
07-16-2013
you need to ask elezzzark about hacker shit like that, bRO
-
-
07-17-2013
that guy will probably not help you because he's too busy hacking
-
-
07-17-2013
However, you should find a reference about set every seconds and refresh action, then reset default variables
-
07-17-2013
^ hacker
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)