Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /Timer1
- int start = 0;
- private void timer1_Tick(object sender, EventArgs e)
- {
- if (Convert.ToInt32(textBox3.Text) > listBox1.Items.Count)
- {
- WebClient wb = new WebClient();
- string html = wb.DownloadString("http://dayviews.com/p/ajax.html?action=loadInMoreGroupMembers&start=" + start.ToString() + "&diaryname=" + textBox1.Text);
- start += 36;
- MatchCollection m6 = Regex.Matches(html, "\"username\":\"\\s*(.+?)\\s*\"", RegexOptions.Singleline);
- foreach (Match m in m6) { listBox1.Items.Add(m.Groups[1].Value.ToString()); }
- label1.Text = "Start: " + start.ToString();
- label2.Text = "Users: " + listBox1.Items.Count.ToString();
- }
- else
- {
- timer1.Enabled = false;
- MessageBox.Show("Klar med " + listBox1.Items.Count.ToString() + " !");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement