PDA

View Full Version : someone help me baby coding .net



elezzark
07-16-2013, 06:13 PM
how do I make my proxies auto refresh every certain interval, i also have ProxyRefresh as a link label


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

rootbeer
07-16-2013, 06:20 PM
Ok, well that's clearly a blue box thingy with some words and numbers on it. I've seen a couple like it before.

m0nde
07-16-2013, 06:47 PM
you need to ask elezzzark about hacker shit like that, bRO

elezzark
07-17-2013, 06:28 AM
bump for elz

m0nde
07-17-2013, 06:38 AM
that guy will probably not help you because he's too busy hacking

juji
07-17-2013, 06:41 AM
I dont use .net

juji
07-17-2013, 06:42 AM
However, you should find a reference about set every seconds and refresh action, then reset default variables

m0nde
07-17-2013, 07:10 AM
^ hacker