Results 1 to 3 of 3

Thread: filling in text boxes in web pages?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    1

    filling in text boxes in web pages?

    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?

  2. #2
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Use the WebBrowser control

    here's the code:

    VB Code:
    1. With WB.Document
    2.         If WB.ReadyState = READYSTATE_COMPLETE Then
    3.             .getElementById("email").Value = "myemail.email.com"
    4.             .getElementById("comments").Value = "test"
    5.             .Forms(0).Submit
    6.         End If
    7.     End With

    about the 35 minutes thing, use a timer...
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  3. #3
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    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!
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width