|
-
Jan 10th, 2000, 06:15 AM
#1
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, 06:27 AM
#2
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]
-
Jan 10th, 2000, 07:29 AM
#3
Junior Member
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).]
-
Jan 10th, 2000, 07:50 AM
#4
Hyperactive Member
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
-
Jan 10th, 2000, 10:12 AM
#5
Addicted Member
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
-
Jan 12th, 2000, 02:55 AM
#6
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|