Could not loccate automation class named ..... 
Author Message
 Could not loccate automation class named .....

Hi,
I am trying to make a simple java script to active a program
that runs on windows called rasmol.  I have modified a jscript
that comes from a microsoft site that runs excel.
When it runs it comes up with:
 'Windows Scripting Host -Script Execution Error'
Category: 'WScript.CreateObject'
Description:'Could not locate automation class named Raswin.Application'

Code:

Quote:
> var objRM = WScript.CreateObject("RasWin.Application");
> objRM.Visible = true;

Telling it where the application is stored doesn't work either.
var objRM = WScript.CreateObject("c:\\zips\\raswin.exe");

I am sure this is a simple problem that faces people when they just
start using scripts. Could anyone tell me how to launch the application and
then send commands to it?

Cheers

Heather



Mon, 07 May 2001 03:00:00 GMT  
 Could not loccate automation class named .....
RasWin.Application may not be the correct ProgID. Just because Word and
Excell use .Application doesn't mean that every app does.
If the app supports OLE Automation you can find it with the OLE Viewer (see
previous post).
Or use the VBA editor in Excel (<Alt> <F11>) and try adding a reference
(tools menu) to that exe.
Don't be surprised if it doesn't work.

If your app doesn't support OLE automation you can use the WSHShell.run
method and use 'sendkeys' or 'scriptit' to automate execution.

Regards,
Ian
WSH FAQ http://wsh.glazier.co.nz/frame.htm

Quote:

>Hi,
>I am trying to make a simple java script to active a program
>that runs on windows called rasmol.  I have modified a jscript
>that comes from a microsoft site that runs excel.
>When it runs it comes up with:
> 'Windows Scripting Host -Script Execution Error'
>Category: 'WScript.CreateObject'
>Description:'Could not locate automation class named Raswin.Application'

>Code:
>> var objRM = WScript.CreateObject("RasWin.Application");
>> objRM.Visible = true;

>Telling it where the application is stored doesn't work either.
>var objRM = WScript.CreateObject("c:\\zips\\raswin.exe");

>I am sure this is a simple problem that faces people when they just
>start using scripts. Could anyone tell me how to launch the application and
>then send commands to it?

>Cheers

>Heather



Tue, 08 May 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. File name or class name not found during Automation operation

2. could not locate automation class named

3. this class does not manage automation

4. Could not locate automation class

5. Class does not support automation

6. Class does not support automation

7. "File name or class name not found during Automation..."

8. class doesn't support automation error Win2k/ie5.5/jscript5.6

9. Class doesn't support automation (open.window...)

10. Error: Class doesn't support automation

11. Class doesn't support Automation

12. Class doesn't support Automation

 

 
Powered by phpBB® Forum Software