Hack Forums
[C#] Need help with autofill webform - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Need help with autofill webform (/showthread.php?tid=5622043)



Need help with autofill webform - Dotexe - May 13, 2017

Hello lads, i want to help one friend with this , its some kind of donation. But i want to create simple program where i can autofill and send automatically with timer instead of doing it manually, but i stucked here
Code
webBrowser1.Document.GetElementById("submit").InvokeMember("Click");
basically username/email and message box are working but only the button called "Click to tip" gives Object reference not set to an instance of an object, where is the problem ?


* - dzvtkfuqqe - May 13, 2017


1. usually submit is used more than once and not as a global object so I suggest you look into XPath's
I can't post links but I can remove the resource identifiers ;)
w3schools DOT com/xml/xpath_syntax DOT asp
2. WebRequests! Look into them!

I could just as easily give you the neccessary code but you know the old saying.. Give a man a snippet of code and he'll compile for a day. Teach a man a snippet of code and he'll be able to debug and compile always.

I can help you on Skype if you add me@live:wamfyssz


* - Dotexe - May 13, 2017

You're right i will try to figure it out, thank you man ;)


* - BoliBerrys - May 13, 2017

(May 13, 2017 11:18 AM)dzvtkfuqqe Wrote:  Give a man a snippet of code and he'll compile for a day. Teach a man a snippet of code and he'll be able to debug and compile always.

Amazing quote


* - dzvtkfuqqe - May 13, 2017

(May 13, 2017 11:20 AM)Dotexe1 Wrote:  You're right i will try to figure it out, thank you man ;)

I did not neccessarily mean figure it out on your own, but I can help you on Skype if you want.


* - Dotexe - May 13, 2017

Not home yet, i will contact you if i face a problem buddy, still thanks a lot !