Results 1 to 6 of 6
  1. #1
    5 Star Lounger
    Join Date
    Jul 2004
    Location
    Ohio
    Posts
    629
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Input (VB6)

    I need to enter a number in a text box on a website and then click a "verify" button, and then wait for another page to load and to click a "submit" button so I can check a number against a database to see if it exists. I've been playing around with a winsock control but i'm not really sure if thats what I should be using to do this, maybe there is a better control for this? I could use any suggestions on controls or websites for info on how to use them, but everything i find examples of is like chat programs and ftps which don't help me very much. <img src=/S/disappointed.gif border=0 alt=disappointed width=15 height=15>

    i've gotten as far as finding html requests are done on port 80, and how to connect to a site using the winsock control, but thats about it.
    <img src=/w3timages/blueline.gif width=33% height=2>
    <big>John</big>

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Internet Input (VB6)

    The "high overhead" way is to use the InternetExplorer/WebBrowser objects and the MSHTML document object model library. I'm not sure if I've ever used it to submit a form...but here's an example of extracting information: <post#=288581>post 288581</post#>.

  3. #3
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Internet Input (VB6)

    John,

    Would this third party product (iOpus Internet Macros) possibly be of any use?
    (And has anyone here ever heard of this or used it?)

    I can't tell you the first thing about how to use it - it was just recommended to me as possibly useful for a future project that may involve filling out forms on a website, with data from Word forms documents - but I haven't really looked at it yet.
    They claim to be able to interface with VB - worth a look anyway.

    Gary

  4. #4
    5 Star Lounger
    Join Date
    Jul 2004
    Location
    Ohio
    Posts
    629
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Internet Input (VB6)

    hmm, i'll have to take some time to disect that code jscher, but i'll let you know if/when i figure it out.

    Gary, it looks like that can do it, but it also seems like that may be overkill, i don't (atleast i didn't) think what i was trying to do was that complicated. I'm going to do some more research and I"ll post my findings <img src=/S/compute.gif border=0 alt=compute width=40 height=20> <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    <img src=/w3timages/blueline.gif width=33% height=2>
    <big>John</big>

  5. #5
    5 Star Lounger
    Join Date
    Jul 2004
    Location
    Ohio
    Posts
    629
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Internet Input (VB6)

    ok, im using Microsoft Internet Controls to do this. i added a webbrowser control and i have it .navigate to the web page URL. then i just go to the different text fields and set their values. its pretty simple acutally! thanks for the help though <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    <img src=/w3timages/blueline.gif width=33% height=2>
    <big>John</big>

  6. #6
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Internet Input (VB6)

    Thank you, John - I'm going to be needing to do something similar in a month or so, had never done that before, and only had that 'internet macros' lead that the client had steered me to. Sounds like I should be able to do what I need with an MS internet control.

    Gary

Posting Permissions

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