Re: Humble question - sample VB6 code that interacts with web page? (see inside)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 05:33:03 -0600


"Tammi" <Out@West.com> wrote
> Hi-
>
> I need to write a simple app (delivered as an EXE) that interacts with
> a web page (MS Exchange Server, to be exact) by "mimicking" a user-
> clicking on certain buttons, posting a text message inside a box, etc.
> In other words, a client-side automation task.

First things first, are you tring to show them the page, or are you trying
to submit a filled out form? If the latter, perhaps you can mimick the
filled out form through the URL.

For a simple eample: www.dictionary.com has one textbox and a button.
You can go there and fill in the text and hit the button. But if you already
know the word you want to look up, you can supply that in the URL:
http://dictionary.reference.com/search?q=example

Doing so bypasses the filling of the first form, and goes directly to the
the results page, (as if the user filled the form and hit the button).

For another example:
This:
http://groups.google.com/groups?as_q=Explorer+submit+form+&num=50&as_scoring=r&hl=en&ie=ISO-8859-1&c2coff=1&btnG=Google+Search&as_
ugroup=microsoft.public.vb.*&safe=off

Is the url when this page is filled and submitted:
http://groups.google.com/advanced_group_search?q=group:microsoft.public.vb.*&as_q=Explorer+submit+form+&hl=en&safe=off&num=50

Note that in the above link, you are able to put text in the boxes, by
using the appropreate URL. Also, view the results pages for more
information (IE run the search and look at the results for more info)
Make sure to post all of the link into your browser, the links may be
broken up in the newsreader.

HTH
LFS



Relevant Pages

  • Re: Message blocker for message board?
    ... > my favorite web sites has a problem. ... I'd also be interested to find out if Snort ... > posting bots of some sort, and may be using zombied computers. ... Looked at the site and yup, she is being hit pretty hard... ...
    (alt.computer.security)
  • Re: FreeRice
    ... and frustrating time sink it could be. ... posting about it and hit a vocab level of 50 with the next five or six ... What if I was so careful, nay miserly even, and got hit by the metaphorical runaway bus and lost the rest of time despite the care I took to spend my twenty-four hours a day wisely? ... The group has over a thousand members and more than eleven thousand photographs in the posting archives. ...
    (misc.writing)
  • Re: Posting & Threads (Ongoing conversations)
    ... use the same posting address or an individual that is doing a posting ... flood of software you use the subject line to separate the software ... Just tag everything you want, hit save, and tin sucks all the articles ...
    (rec.sport.paintball)
  • Re: Useful suggestion and Im not joking was Re: If things werent bad enough
    ... the three biggies (the other one is loss of a partner) in one hit. ... I'm glad you're still around and posting. ...
    (uk.people.support.depression)
  • Re: Could not perform this operation because the default mail clie
    ... regular user side. ... I hit that and the winmail opens. ... You don't see .exe because your Windows Explorer is set to Hide extensions ...
    (microsoft.public.windows.vista.mail)