I need help with a small project that I'm working on. I'm trying to make a small windows applications which will allow me to start a server from a third party website, this is the first time I'm working on something like this (I mainly worked on database focused applications in school).
I tried using the visual studio web browser and doing things like webBrowser1.Navigate("http://ift.tt/1KoR4HZ") but it doesn't work because the webpage has some javascript stuff so in the browser only half the content is shown and the button for me to create a server is not one of them.
is there any other way I can do this? I tried using webKit from http://ift.tt/1lQWX5Y but I could not get that to work.
all I want to do is click on one of the images that is located below the part that says "Please click a game icon to create a gameserver", also the end goal for me is to have just 1 button and the webbrowser invisible so I can just click on the button and that will create the game server and output the IP address of the server to me.
also I don't want anyone to do it for me and post the code or what ever, I want to learn how to do it but I have spent the last few days looking everywhere and I didn't find anything that was useful to me.
I also tried using WebRequest and WebResponse - POST method but that didn't work either and I have no idea what I'm doing wrong, please help me with this I'm so confused.
System.Collections.Specialized.NameValueCollection collection = new System.Collections.Specialized.NameValueCollection();
WebClient client = new WebClient();
collection.Add("game[8]", "ChaosDuck API test Server launch");
collection.Add("game[47]", "272");
collection.Add("game[9]", "71");
collection.Add("game[10]", "75");
collection.Add("game[12]", "83");
collection.Add("game[13]", "ChaosDuck");
collection.Add("fgh_start", "Start Gameserver");
Byte[] responseData = client.UploadValues("http://ift.tt/1KoR4HZ", collection);
System.IO.File.WriteAllBytes("responseData.html", responseData);
System.Diagnostics.Process.Start("responseData.html");
That is the last thing I tried and that doesn't work either, when it opens up my browser it just says "Disable Ad Block!" even though I don't have any ad block running.
please point me in the right direction or something, I don't know what else to try.
Aucun commentaire:
Enregistrer un commentaire