Hack Forums
[.NET] Performing a website click - 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: [.NET] Performing a website click (/showthread.php?tid=5051185)



Performing a website click - prapao - Nov 8, 2015

Hey.

I want to make a bot that click a button on a website within a timer, but cant get it to click?

https://gyazo.com/5039e097232a2240c877286efa0e2abf
https://gyazo.com/36991a9cb25d3e802ab8d7e71e0de9e7

I dont know what im missing here. Any help?


* - SL x TnT - Nov 8, 2015

Debugging is an important skill.

Put a breakpoint inside your If statement. Make sure you're grabbing the correct element. From what I can tell, you aren't.
Once that's done, try to get it to click.

If you can't get that working, grab the form element by the id and invoke "submit." It should be "crimeform."
Don't forget to set the "cID" id element's value to 0. Not sure if that'll affect it or not.


* - prapao - Nov 9, 2015

anyone else who has an idea?


* - nathan72389 - Nov 9, 2015

(Nov 9, 2015 08:01 AM)prapao Wrote:  anyone else who has an idea?

lol, you did not get complete copy and paste code so you ask if someone else has any idea?
you have your answer.


* - Odus - Nov 9, 2015

(Nov 9, 2015 08:01 AM)prapao Wrote:  anyone else who has an idea?

SL nailed it. Not sure what else you want.


* - Diamondo - Nov 9, 2015

WebBrowser1.Document.All("crimeform").InvokeMember("click")