Judging from a read of the code, there are two problems: First, "exit function" is not valid because it is not actually located in a function. You'd probably have to use script.stopScript instead, but that's a guess on my part.
But the second problem, which explains why only some people see the error message, is why that line is running anyway. People who are seeing the error are not getting a WMI object, and I'm very curious why not. My recommendation for now is to take out the "on error resume next" and "on error goto 0" lines above and below the getObject line, and also take out line 15, the If statement with the "exit function." This will expose the real error that's causing all the trouble in the first place I hope. On Mon, Sep 08, 2008 at 08:39:45PM -0700, jim grimsby Jr. wrote: I also can reproduce this. Also using vista. Hth From: Vic Beckley [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 7:24 PM To: [email protected] Subject: RE: Trouble with Relaunch Window-Eyes script. Jamal, I get the same error. This is under Vista. It seems to work okay under XP. --------------------------- Windows Script Host --------------------------- Script: C:\Users\Vic\AppData\Roaming\GW Micro\Window-Eyes\Users\Default\BootStrap.vbs Line: 15 Char: 37 Error: Invalid 'exit' statement Code: 800A040F Source: Microsoft VBScript compilation error --------------------------- OK --------------------------- Vic From: Darrell Shandrow [mailto:[EMAIL PROTECTED] Sent: Sunday, September 07, 2008 10:19 AM To: [email protected]; [EMAIL PROTECTED] Subject: Trouble with Relaunch Window-Eyes script. Hey Jamal, I decided to try your Relaunch Window-Eyes script. After pressing Windows-Backslash twice, I heard one of those error gong sounds, followed by complete Window-Eyes silence. After manually restarting WE, I was able to capture the following Windows Script Host error: Windows Script Host Script: C:\Documents and Settings\Darrell Shandrow\Application Data\GW Micro\Window-Eyes\Users\Default\BootStrap.vbs Line: 15 Char: 37 Error: Invalid 'exit' statement Code: 800A040F Source: Microsoft VBScript compilation error OK Darrell Shandrow - Accessibility Evangelist Information should be accessible to us without need of translation by another person. Blind Access Journal blog and podcast: [1]http://www.blindaccessjournal.com __________ NOD32 3423 (20080906) Information __________ This message was checked by NOD32 antivirus system. [2]http://www.eset.com References 1. http://www.blindaccessjournal.com/ 2. http://www.eset.com/ -- Doug Lee, Senior Accessibility Programmer SSB BART Group - Accessibility-on-Demand mailto:[EMAIL PROTECTED] http://www.ssbbartgroup.com "While they were saying among themselves it cannot be done, it was done." --Helen Keller
