|
-
Dec 12th, 2006, 07:12 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Need help sending data to webbrowser
Well, title says it all, I'm having trouble sending data to the webbrowser with the .document function
I am trying to log into amazon.com automaticly and i have tried numerous methods
such as:
Code:
PostData = StrConv("[email protected]&password=Y", vbFromUnicode)
WebBrowser1.Navigate "https://www.amazon.com/gp/flex/sign-in/select.html/102-2175624-5181701?ie=UTF8&protocol=https", , , PostData
and
Code:
WebBrowser1.Navigate "https://www.amazon.com/gp/flex/sign-in/select.html/102-2175624-5181701?ie=UTF8&protocol=https", , , PostData
Do Until WebBrowser1.Busy = False
DoEvents
Loop
WebBrowser1.Document.Forms(0).Item("email").Text = "[email protected]"
can anyone shed any light on this,
(will this also word with https? or should i give up)
-
Dec 12th, 2006, 07:45 PM
#2
Re: Need help sending data to webbrowser
This works for me.
VB Code:
Dim PageComplete As Boolean
Private Sub cmdLogin_Click()
'wb1 = webbrowser control
wb1.Document.All("password").Value = "YourPassword" 'password
wb1.Document.Forms("sign-in").submit 'login
End Sub
Private Sub Form_Load()
'wb1 = webbrowser control
wb1.Navigate ("https://www.amazon.com/gp/flex/sign-in/select.html/102-2175624-5181701?ie=UTF8&protocol=https")
Do Until PageComplete = True
DoEvents
Loop
End Sub
Private Sub wb1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If pDisp = wb1 Then
PageComplete = True
End If
End Sub
-
Dec 12th, 2006, 07:56 PM
#3
Thread Starter
Addicted Member
Re: Need help sending data to webbrowser
Ahh, so its Document.All, thanks alot ^.^
-
Dec 12th, 2006, 09:24 PM
#4
Re: [RESOLVED] Need help sending data to webbrowser
No probs
-
Dec 16th, 2006, 09:31 PM
#5
Re: [RESOLVED] Need help sending data to webbrowser
Wow, this is nice, will it work on other email sites like Yahoo and Hotmail?
-
Dec 17th, 2006, 06:27 PM
#6
Re: [RESOLVED] Need help sending data to webbrowser
Yes, you just to need to find the field names within the form and you'll be able to login.
-
Jan 3rd, 2007, 03:23 AM
#7
Junior Member
Re: [RESOLVED] Need help sending data to webbrowser
Hi all
Just to check how you activate the "submit" button if the form itself does not have a name
-
Jan 3rd, 2007, 03:47 AM
#8
Re: [RESOLVED] Need help sending data to webbrowser
Do you have an example URL we can look at?
-
Jan 3rd, 2007, 03:59 AM
#9
Junior Member
Re: [RESOLVED] Need help sending data to webbrowser
-
Jan 3rd, 2007, 04:04 AM
#10
Re: [RESOLVED] Need help sending data to webbrowser
that was an easy one
VB Code:
WebBrowser1.Document.All("custom_ip_address").Value = "192.168.0.1"
WebBrowser1.Document.All("submit").Click
-
Jan 3rd, 2007, 04:08 AM
#11
Junior Member
Re: [RESOLVED] Need help sending data to webbrowser
Wow thankz a lot
-
Jan 3rd, 2007, 05:03 AM
#12
Lively Member
Re: [RESOLVED] Need help sending data to webbrowser
Awesome bit of code, definetly saving that for future reference.
-
Jan 3rd, 2007, 05:54 AM
#13
Re: [RESOLVED] Need help sending data to webbrowser
Glad to help
-
Jan 3rd, 2007, 06:23 AM
#14
Junior Member
Re: [RESOLVED] Need help sending data to webbrowser
i can login in a window popup? like when login a ftp site?
[VBCODE]on error go to VBForums[/VBCODE]
-
Aug 25th, 2012, 01:23 PM
#15
Member
Re: [RESOLVED] Need help sending data to webbrowser
Last edited by linguist2000; Apr 13th, 2022 at 09:49 AM.
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
|