Results 1 to 7 of 7

Thread: Ie?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    8

    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 :'-(

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    8

    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

  3. #3
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Ie?

    As i aint got a clue, *Bumb*, mehbeh somewill help now

  4. #4
    Banned ThaRubby's Avatar
    Join Date
    Apr 2005
    Location
    127.0.0.1
    Posts
    356

    Re: Ie?

    I dont know exactly what your goal is. To open the default browser use
    VB Code:
    1. Shell Environ("comspec") & " /c Start http://google.com", vbMaximizedFocus


    To use IE use this code
    VB Code:
    1. Dim IE As Object
    2.                     Set IE = CreateObject("Internetexplorer.application")
    3.                     IE.Navigate "http://google.com"
    4.                     IE.Visible = True

  5. #5
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    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.
    CodeBank: Launch IE

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Ie?

    Why dont you just use the Webbrowser Control?...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  7. #7
    Lively Member
    Join Date
    Nov 2002
    Posts
    123

    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
  •  



Click Here to Expand Forum to Full Width