|
-
Dec 3rd, 2009, 11:49 AM
#1
Thread Starter
Member
Web Browser - Auto Fill In
I have some values in the registry to set the user name, I also have a web browser, How would i make the web browser auto fill in the user name field in the web page window on load?
-
Dec 3rd, 2009, 11:50 AM
#2
Thread Starter
Member
Re: Web Browser - Auto Fill In
or how would i be able to send the username and password on window load? like to make it auto authenticate? Like usuly i make a webpage form and make it send threw a form, but is there a way to send the un and password like if you filled out the link?
-
Dec 3rd, 2009, 04:48 PM
#3
Addicted Member
Re: Web Browser - Auto Fill In
Do a forum search you will find the tread.
it has been ask't before.
Use the keyword: webpagemanipulation
And there is also a sample project in the code section of the forum
-
Dec 3rd, 2009, 05:57 PM
#4
Addicted Member
Re: Web Browser - Auto Fill In
Code:
WebBrowser1.Document.DomDocument.GetElementById("username").Value = TextBox1.Text
the
You must view the source to the page, Find the Username Textbox, Get the Id for it and then change it to the Id, Example for a vBulletin Forum Login would be...
Code:
WebBrowser1.Document.DomDocument.GetElementById("vb_login_username").Value = TextBox1.Text
-
Dec 3rd, 2009, 11:18 PM
#5
Re: Web Browser - Auto Fill In
While Dcrew's answer would work, you can cute the code down a little bit using the .All property of the document:
Code:
WebBrowser1.Document.All("vb_login_username").Value = TextBox1.Text
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|