Results 1 to 14 of 14

Thread: Inet and Internet Explorer

  1. #1

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116
    Hi

    I have Internet Explorer open already. How do I use the Inet Control property and method against the OPEN Internet Explorer Window. I don't want to open another session. Just want to be able to control the open IE window with the same commands, properties and method of the inet control.

    The "open session" was not open by the inet control.

    Thank You.
    License to Program

    007

  2. #2
    Guest
    A question, an answer

    What do you exactly plan to do? Open an URL, download a file, or what?

    You can do it, but not with the inet control but with the API.

  3. #3

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116

    Been sitting infront of my computer all night now.

    This is what i have.

    Code:
    Private WebBrowser As InternetExplorer
    
    Set WebBrowser = New InternetExplorer
    I don't want a new instance of InternetExplorer but an existing open session. I want to take advantage of all built in functions and methods of InternetExplorer. Anyone have any ideas?


    Too hard to do things like this with API. This is only one ex.
    Code:
      WebBrowser.Navigate (Site)
      
      'READYSTATE_UNINITIALIZED The default initialization state.
      'READYSTATE_LOADING       The object is currently loading its properties.
      'READYSTATE_LOADED        The object has been initialized.
      'READYSTATE_INTERACTIVE   The object is interactive, but not all of its data is available.
      'READYSTATE_COMPLETE      The object has received all of its data.
      
      Do Until WebBrowser.ReadyState = READYSTATE_COMPLETE
        DoEvents
      Loop
    Thanks for your word.
    License to Program

    007

  4. #4

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116
    Matthew or HeSaidJoe?
    License to Program

    007

  5. #5

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116
    Anyone???
    License to Program

    007

  6. #6
    Guest

    Talking Do I hear someone calling my name?

    Try dimming it.

    Dim WebBrowser As InternetExplorer

    Of course, you must set the Webbrowser Control as a reference. (Click Project > References... and make sure Microsoft Internet Controls is checked.) And put the code above in the code above in the Form Declarations, than you can use it in any control. Hope you get what I mean.

  7. #7

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116
    I did all of that already. I just need to be able to control an existing session of IE using program. Don't want to open another one. Want to use all inet functions to control the existing session. Comon GURUS! There has to be a way for late binding.
    License to Program

    007

  8. #8
    Guest

    Question Does it have to be Gurus?

    Do you mean, control an IE window that the user has opened manually, or one that you have opened from something like:

    Code:
    Dim ie as InternetExplorer
    ie.Navigate "http://www.vb-world.net"
    ie.Visible = True
    'ie....
    ?


  9. #9

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116

    Thumbs up That is what I mean! Is it do able? Thanks

    control an IE window that the user has opened manually
    License to Program

    007

  10. #10
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    007
    ...my expertise lies in Fishing but I guess that doesn't
    qualify under VB...I have not played with this side of things as I deal with only what I need at the moment. Ie.
    database junk etc. However, this seems interesting enough for me to see if I can find an answer so I will have a look around to see if someone can direct me to an answer.

    Just today, I got code to find the url in the open browser so if I can find it in the browser perhaps I can change it and send it as well...This will take some time and I may never get it, but I will give it a go.

    Good luck,
    Wayne
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  11. #11

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116

    Thumbs up Thanks for your reply and I will be waiting.

    License to Program

    007

  12. #12
    Addicted Member
    Join Date
    May 2000
    Posts
    247

    Thumbs up

    What type of fishing do you do HeSaidJoe? I do alot myself.
    Mako Shark
    Great White

  13. #13
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Shark:
    I like to fish Rainbow trout mostly, it's cold fishing but when you get action you get action. Like to use a 12 foot noodle with a float reel and my own tied flies...Only problem is I have to drive 2 to 2/1/2 hours to fish so that puts a damper on it. And with trout you have to be on the river at daybreak so that means leaving my place at 3:00 AM.

    Oh well, it's cool...Right now the Salmon are running...lots of fight but it's mostly straight runs with very litle air dives.

    But I'll fish anything, even Perch...whatever, it's fun and it's even better if you can eat the thing you catch.

    Oh yea, this is a VB forum...

    JamesBond007:

    Hopefull, this is everything you need:

    http://www.freevbcode.com/ShowCode.Asp?ID=1606"




    [Edited by HeSaidJoe on 09-29-2000 at 08:39 PM]
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  14. #14

    Thread Starter
    Lively Member James Bond 007's Avatar
    Join Date
    May 2000
    Location
    London
    Posts
    116

    Thumbs up

    Hesaidjoe, that was beautiful. Right-on!!! Good luck fishing with Shark.
    License to Program

    007

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