public string site = "http://www.tibia.com/community/?subtopic=worlds&world=Aurera";
private Regex nomedochar = new Regex("subtopic=characters&name=(?<player>.*?)\" >");
public string nomedochar2 = "";
public Thread t;
public List<string> player = new List<string>();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.nomedochar2 = new StreamReader(WebRequest.Create(site).GetResponse().GetResponseStream()).ReadToEnd();
Match math = this.nomedochar.Match(this.nomedochar2);
this.player.Add(math.Groups["player"].Value);
this.t = new Thread(Novathread);
this.t.Start();
}
public void Novathread()
{
for (int i = 0; i < 100; i++);
}
I wanted him to get all the "player" he could find and put it in a list box, but I can not, I'm learning to program now.