PDA

Click to See Complete Forum and Search --> : ONE MILLION DOLLAR REWARD!


Jan 10th, 2000, 05:15 AM
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

Jan 10th, 2000, 05:27 AM
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 CompuNerd88@aol.com

mhayenga
Jan 10th, 2000, 06:29 AM
To get it to go to a specific site I'd just use...
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 (http://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
mitch@hayenga.com

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

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

LG
Jan 10th, 2000, 06:50 AM
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

Lyla
Jan 10th, 2000, 09:12 AM
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

Nias
Jan 12th, 2000, 01:55 AM
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?