Results 1 to 3 of 3

Thread: Navigating Web Sites

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    Maine
    Posts
    2

    Question

    Hello
    I have a Stock market project in which I need to be able to go into sites like priceline.com and place orders for sells and for buys. I want to be able to do this automatically without having to surf into the site Manually.
    Does anyone know of a code example that could give me some insite into how to acomplish this.
    Thank you
    Lyndon

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Code:
    'Use the WebBrowser control on your form.
    'find the names of the input boxes on the site and on
    'something like this.
    WebBrowser1.Navigate "http://www.priceline.com"
    WEbBrowser1.Document.Forms(0).NameOfInputBox.Value = "WalMart"
    WebBrowser1.Document.Forms(0).NameOfOtherBox.Value = "100"
    WebBrowser1.Document.Forms(0).SubmitButtonName.Click
    Hope that helps,
    D!m
    Dim

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Lyndon,
    Sorry i couldn't reply to your e-mail (my server is down).
    I think what your looking for is:
    Code:
    Private Sub Command1_Click()
        WebBrowser1.Navigate "http://www.someplace.com"
        Text1.Text = WebBrowser1.Document.Forms(0).NameOfField.Value
    End Sub

    Gl,
    D!m
    Dim

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