Jun 13, 2014 04:22 AM
(This post was last modified: Jun 13, 2014 07:31 AM by GoofyMan2.)
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:
![[Image: LBhRYxPl.jpg]](https://i.imgur.com/LBhRYxPl.jpg) 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.
Pretty sure you need to set "checked" to "true", but don't quote me on that.
Jun 13, 2014 04:40 AM
(This post was last modified: Jun 13, 2014 04:40 AM by GoofyMan2.)
Can you please explain that though a bit more please proddy.
WebBrowser1.Document.GetElementById("").SetAttribute("checked", "0")
This is my error I get when debugging: http://scr.hu/1pj7/nbex4
thats because checkbox is not an ID. just use google to hep you
WebBrowser1.Document.GetElementByName("pse_216_resident").SetAttribute("CHECKED", "0")
No idea if that works. :D
Jun 13, 2014 04:56 AM
(This post was last modified: Jun 13, 2014 04:56 AM by GoofyMan2.)
I get a error when attempting to do what you said proddy. http://scr.hu/1pj7/0g2ca
Jun 13, 2014 05:12 AM
(This post was last modified: Jun 13, 2014 05:12 AM by Mr.Steven.)
Here's the code buddy:
Code WebBrowser1.Document.All("pse_216_resident").SetAttribute("checked", "1")
That will tick the checkbox.
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.
Thank you Mr.Steven it works great now.
(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.
(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 you're going to use a webbrowser, at least use Gecko or something instead of crappy IE.
If he can't manage WebBrowsers I don' think he can manage WebClients :/
Jun 13, 2014 07:23 AM
(This post was last modified: Jun 13, 2014 09:40 PM by GoofyMan2.)
Just reedited my thread to my new question of which im asking.
|