|
Thread: Ie?
-
Jun 9th, 2005, 01:19 PM
#1
Thread Starter
New Member
Ie?
Im trying to open up an internet explorer browser at a specific url,
easy you say? well perhaps, but each browser window needs a different session/cookie and this code:
Code:
Dim objIE As InternetExplorer
Set objIE = New InternetExplorer
objIE.Visible = True
objIE.Navigate2 "http://www.vbforums.com"
Do While objIE.Busy = True
DoEvents
Loop
MsgBox objIE.Document.URL
Set objIE = Nothing
Doesnt work
i also want to be able to grab the status of the browser and display its location/value in a label, is this possible? or am i just completely mental? also is it possible too look for specific text in source code? lol, i havent seen any code like it in the code bank, if someone could point me to one that be great
Thanks Alot For Your Help :'-(
-
Jun 11th, 2005, 01:40 PM
#2
Thread Starter
New Member
Re: Ie?
wow? no one will help me?
oh how unlucky i am, and my GFX just blew up, so i am on a 32MB Gfx Card
-
Jun 11th, 2005, 01:48 PM
#3
Re: Ie?
As i aint got a clue, *Bumb*, mehbeh somewill help now
-
Jun 11th, 2005, 03:05 PM
#4
Banned
Re: Ie?
I dont know exactly what your goal is. To open the default browser use
VB Code:
Shell Environ("comspec") & " /c Start http://google.com", vbMaximizedFocus
To use IE use this code
VB Code:
Dim IE As Object
Set IE = CreateObject("Internetexplorer.application")
IE.Navigate "http://google.com"
IE.Visible = True
-
Jun 15th, 2005, 12:27 PM
#5
Addicted Member
Re: Ie?
Well if you use IE as an object you're going to get one IE process and multiple threads. If you need a cookie / session ID for each one you have to use Shell / ShellExecute to create separate processes which won't share the cookie / session ID.
I'm not sure but I don't believe you can get all those properties back from IE if you have launched it using a shell command as opposed to an object.
Code for finding IE's path and executing in separate process is in the CodeBank link below.
-
Jun 15th, 2005, 09:56 PM
#6
Re: Ie?
Why dont you just use the Webbrowser Control?...
-
Jun 16th, 2005, 11:12 AM
#7
Lively Member
Re: Ie?
Here is a sample program that I found on the web that gives you access to all IE instances on your machine. I have been putzing with a few apps using it and am very impressed for my applications.
( Sorry to the author of the project. I don't know who he/she is, but the code isn't mine )
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
|