![]() |
|
[.NET] (Help) Visual Basic 10 Form Filler - 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] (Help) Visual Basic 10 Form Filler (/showthread.php?tid=4283069) |
(Help) Visual Basic 10 Form Filler - GoofyMan2 - Jun 13, 2014 Hello guys i'm just starting to get into visual basic and i'm creating a form filler and I need some help with this. Pretty much i'm trying to make visual basic pick different emails to use each time it going's through. Edit: here is the current formate it usings when getting up to the email part.What I need is each time I open the program it picks different emails each time it go's through. * - Josh - Jun 13, 2014 Pretty sure you need to set "checked" to "true", but don't quote me on that. * - GoofyMan2 - Jun 13, 2014 Can you please explain that though a bit more please proddy. * - +Haze - Jun 13, 2014 WebBrowser1.Document.GetElementById("").SetAttribute("checked", "0") * - GoofyMan2 - Jun 13, 2014 This is my error I get when debugging: http://scr.hu/1pj7/nbex4 * - +Haze - Jun 13, 2014 thats because checkbox is not an ID. just use google to hep you * - Josh - Jun 13, 2014 WebBrowser1.Document.GetElementByName("pse_216_resident").SetAttribute("CHECKED", "0") No idea if that works. :D * - GoofyMan2 - Jun 13, 2014 I get a error when attempting to do what you said proddy. http://scr.hu/1pj7/0g2ca * - +Haze - Jun 13, 2014 http://howtostartprogramming.com/vb-net/vb-net-tutorial-49-click-button-without-id/ * - Mr.Steven - Jun 13, 2014 Here's the code buddy: Code WebBrowser1.Document.All("pse_216_resident").SetAttribute("checked", "1")That will tick the checkbox. * - Fafaffy - Jun 13, 2014 Wouldn't it be easier to use a WebClient instead of a shitty IE engine thing? If you're going to use a webbrowser, at least use Gecko or something instead of crappy IE. * - GoofyMan2 - Jun 13, 2014 Thank you Mr.Steven it works great now. * - Mr.Steven - Jun 13, 2014 (Jun 13, 2014 05:15 AM)GoofyMan2 Wrote: Thank you Mr.Steven it works great now.You're welcome. Keep in mind though that using the default web-browser is often not the best solution, depending on what you want to do, you might want to use HTTPWebRequests so when you have time, look it up. * - Josh - Jun 13, 2014 (Jun 13, 2014 05:14 AM)Fafaffy Wrote: Wouldn't it be easier to use a WebClient instead of a shitty IE engine thing? If he can't manage WebBrowsers I don' think he can manage WebClients :/ * - GoofyMan2 - Jun 13, 2014 Just reedited my thread to my new question of which im asking. |