Results 1 to 3 of 3

Thread: Passing URL to Netscape

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    england
    Posts
    1

    Post

    I am trying to pass a url from a VB5 application to IE or Netscape. I am using ShellExecute to start IE with the specified URL, which sither starts the IE if not already running, or loads the url into the existing browser is IEis running.
    My problem is with Netscape (v4.08), which works ok if the browser is not running, but ShellExecute insists on starting a new copy of the browser everytime.
    I wondered if it was possible to send the url to the Loaded browser, as I can detect if a browser is already running, or is there was a better solution. (Not supporting Netscape is not an option).

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    It is my understanding that ShellExecute()runs the application associated with the file type.


    (this is ie4)

    If I un-check the DDE checkbox for HTML files a new browser is opened. If DDE is used then a current browser is opened

    Maybe your netscape machine needs the DDE settings setting

    Alternatively, are there any Netscape command line switches?

    I've had a quick search but no luck so far!

    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company



  3. #3
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    Post

    I dont know if this is going to help much... this procedure executes the default browser. Look at it, it dosent open a new window in netscape for me...

    Code:
    ShellExecute hwnd, "open","www.vbworld.com",vbNullString, vbNullString,
    conSwNormal

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