im in this game called outwar.and i was wondering if someone could help me code a windows application in C# that can sort the 10 ppl with most money out..
please help me.
Printable View
im in this game called outwar.and i was wondering if someone could help me code a windows application in C# that can sort the 10 ppl with most money out..
please help me.
Sure. Use Sockets to connect to the remote server, then send an HTTP GET request to retrieve the page you want by supplying a relative URI, then parse the returned data stream using the same socket. Store the page in a string (or whatever) then use regular expressions to extract the relevant information from the raw HTML.
Any questions?
You could also use HttpWebRequest to perform the Get/Post.
Although, how is it more efficient to open up an application to check the scores when you could just login to the website and check it?
Quote:
Originally Posted by mendhak
I need a program that can sort the ppl with most money out..
can anyone help code it or code it to me`?
please contact me
Wossname told you how to do it. Try researching all the things you didn't understand in his post.
or if you want someone to code it for you - there will be a price as well
I just need like more instructions..i dont want it coded by someone else,then i dont learn it(and whats the point then:P)
but if anyone could like give me some more instructions?
this is an example from the "how do I"
// Synchronous connect using IPAddress to resolve the
// host name.
public static void Connect(string host, int port)
{
IPAddress[] IPs = Dns.GetHostAddresses(host);
Socket s = new Socket(AddressFamily.InterNetwork,
SocketType.Stream,
ProtocolType.Tcp);
Console.WriteLine("Establishing Connection to {0}", host);
s.Connect(IPs[0], port);
Console.WriteLine("Connection established");
}
how can i get it to work,lol
i get errors all the time..
please help
what errors? be specific