Results 1 to 3 of 3

Thread: IE events with VBScript

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    2

    IE events with VBScript

    I try executing the following script using the Windows Scripting Host (v5.1):

    dim browser

    sub browser_DownloadComplete(disp, url)
    WScript.Echo "URL " & url & " loaded."
    end sub

    set browser = CreateObject("InternetExplorer.Application", "browser_")
    browser.menubar = false
    browser.toolbar = false
    browser.statusbar = false
    browser.resizable = true
    browser.Navigate "http://www.microsoft.com"
    browser.visible = true


    I get the following run-time error:

    The remote server machine does not exist or is unavailable: 'CreateObject'

    What gives?

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    I think this might be your problem:

    set browser = WScript.CreateObject("InternetExplorer.Application", "browser_")

    You didn't add the WScript. in the front of CreateObject().


    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    2
    Merci ... I should've found that myself, shouldn't I?

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