do you mean so you could log into say, vbforums by entering a username and password into a standard VB textbox in a standard VBEXE and pressing a command button?
If so, i can give you some source code to do that with winsock, however you will have to wait a couple of hours cause i gotta go out.
do you mean so you could log into say, vbforums by entering a username and password into a standard VB textbox in a standard VBEXE and pressing a command button?
If so, i can give you some source code to do that with winsock, however you will have to wait a couple of hours cause i gotta go out.
Reply or PM me if that is what you are after.
Yes, that is exactly what is needed.
8 gigs/ram (hey why not)
300 gig HD x2
Windows XP 64
Ok, this code is based on a web feedback form (which i included in the zip file)
To make it work with other forms you will need to change the headers. To use it with this site you will need to add an MD5 Hashing algorithm as vBulletin hashes usernames and passwords before sending them across the net.
so your method requires the form to have a name? that could be a problem... you will either have to find a way to get around that or use bushmobile's or my method or another method if you can find it.
Can I get an example of joining the two? (winsck and HTML object library)
well i don't know anything about winsock - but i'm not sure why you'd need it.
presumably you already know how to manipulate the DOM to do what you want - so you just need to create the Document:
Code:
Private Sub Command1_Click()
Dim tHTML As HTMLDocument, HTML As HTMLDocument
Set tHTML = New HTMLDocument
Set HTML = tHTML.createDocumentFromUrl("http://www.google.com", vbNullString)
Do Until HTML.readyState = "complete"
DoEvents
Loop
' Now do your DOM stuff on the HTML object
End Sub
oh, and bushmobile, not sure exactly what you know about winsock, although you did say "nothing"... basically it allows you to make a TCP/IP or UDP connection on any available port to any IP address with a server running (also allows you to make servers)
so the idea behind using winsock here is to emulate the browser by connecting to the webserver, and sending it HTTP headers that contain the relevant data.