Re: WSH-based scripting engine wanted
- From: "Nic Roche" <nicroche@xxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 17:28:30 +1000
> I am searching for a scripting engine, which uses Windows Scripting Host
> and
> which supports WScript object and lets the script create COM objects.
You can use the (windows) built-in ScriptControl:
oSC := CreateOLEObject( 'ScriptControl' );
sWSCCode := 'Sub WSCShell' + #13#10 +
'Dim oShell' + #13#10 +
'Set oShell = CreateObject( "WScript.Shell" )' + #13#10 +
'Call oShell.Popup( "Do you feel alright?", 7, "Answer
this...", 4 + 32 )' + #13#10 +
'Set oShell = Nothing' + #13#10 +
'End Sub';
oSC.Language := 'VBScript';
oSC.AddCode( sWSCCode );
oSC.Run( 'WSCShell' );
The Type Library can be imported as well. Google will give you what you
need...
Nic Roche
"Eugene Mayevski" <mayevski@xxxxxxxxx> wrote in message
news:42625752@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hello!
>
> I am searching for a scripting engine, which uses Windows Scripting Host
> and
> which supports WScript object and lets the script create COM objects. The
> components I checked either implement their own scripting engine or don't
> offer WScript (and don't support external COM objects).
>
> With best regards,
> Eugene Mayevski.
>
.
- Follow-Ups:
- Re: WSH-based scripting engine wanted
- From: Eugene Mayevski
- Re: WSH-based scripting engine wanted
- References:
- WSH-based scripting engine wanted
- From: Eugene Mayevski
- WSH-based scripting engine wanted
- Prev by Date: Re: "Radar" or vector charts
- Next by Date: Re: KSDev -- Support does not respond. Alternative tool for skins ?
- Previous by thread: WSH-based scripting engine wanted
- Next by thread: Re: WSH-based scripting engine wanted
- Index(es):
Relevant Pages
|