Results 1 to 6 of 6

Thread: ONE MILLION DOLLAR REWARD!

  1. #1
    Guest

    Post

    YEA RIGHT

    I am attempting to write a standard VB application that will open a browser, go to a specific site and then select all the text on a particular page.
    I have gotten this far:
    Shell("C:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE", vbMaximizedFocus)

    How would I specifiy an address, "select all" text on page and paste onto clipboard?

    thanks


  2. #2
    Guest

    Post

    Try using SendKeys to go to the File menu, go to Open, press Enter, and select all the text. If you need more help, e-mail me at [email protected]

  3. #3
    Junior Member
    Join Date
    Jan 2000
    Location
    Bryan, Texas
    Posts
    27

    Post

    To get it to go to a specific site I'd just use...
    Code:
    Shell "start <A HREF="http://www.yahoo.com"[/CODE" TARGET=_blank>]http://www.yahoo.com"
    </A>
    That would open the defualt browser to www.yahoo.com or whatever site you put in that place without having to open explorer first... Sorry that I can't answer the main part of your question(copying the text). Man, UBB code doesn't like url's placed it the code section... If it is when this message is posted, then the UBB code probably made my link to yahoo look like [www.yahoo.com, which would give an error...
    Hope that helps.

    ------------------
    Mitchell Hayenga
    [email protected]

    [This message has been edited by mhayenga (edited 01-10-2000).]

    [This message has been edited by mhayenga (edited 01-10-2000).]

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308

    Post

    Hi, trophyfish.
    You can use InternetExplorer Object.
    Set reference to Microsoft Internet Controls.

    Dim IE As InternetExplorer
    Set IE = New InternetExplorer
    IE.ToolBar = False
    IE.MenuBar = False
    IE.Visible = True
    IE.Navigate "http://www.vb-world.net"

    I am not sure what you mean by copying text, because it's already build in Internet. Try this code and you'll see what I mean.

    Good luck
    Larisa

  5. #5
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226

    Post

    Hi.
    mhayenga's one-line is the way to open your browser.

    For copying and pasting:

    After the site has the focus, try using
    SendKey Ctrl+A ' To select all
    SendKey Ctrl+C ' To copy to clipboard

    SendKey Ctrl+V ' finally, to paste to your distnation.

    Good Luck

  6. #6
    Lively Member
    Join Date
    Jan 2000
    Location
    Omaha, Ne
    Posts
    65

    Post

    This is probably not what you wanted but we wrote a very small VB class to read a given web site at a text level and return the text back. Basically we are just reading the web page without formatting or translating the HTML. We didn't use a browser though. Would something like that help?

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