how would i go about filling in text boxes on a webpage, and clicking submit buttons. aswell as giving about a 35 minutes delay after filling in so many text boxes?
Printable View
how would i go about filling in text boxes on a webpage, and clicking submit buttons. aswell as giving about a 35 minutes delay after filling in so many text boxes?
here's the code:
VB Code:
With WB.Document If WB.ReadyState = READYSTATE_COMPLETE Then .getElementById("email").Value = "myemail.email.com" .getElementById("comments").Value = "test" .Forms(0).Submit End If End With
about the 35 minutes thing, use a timer...
Another way is to:
Go to the source of the page with the textboxes, write down the form 'action', then write down the name of each textbox, and viola - you have the string it sends, like:
mypage.asp?text1name=some****
mypage.asp being the forms action, and text1name being the name of the one of the textboxes. Then just use the webbrowser or the Inet control to open the action page using your own vars - preferably from your own textboxes in your app.
This will give you and your app the most of the control, which I think is preferable...
If I were you I'd use GetTickCount for the times, since that's the easiest, you just need to count how many ms's there are in 35 mins...
Cheers!