Re: WSH-based scripting engine wanted



> 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.
>


.



Relevant Pages

  • Re: Just spent 5 hours bug fixing HLA Adventure (my heads about to roll off!)
    ... > the human player is attacked, but being able to resume the script ... the scripting engine can handle that. ... the "goto" command jumps to the appropriate area and starts ...
    (alt.lang.asm)
  • Re: looking for VCL scripting engine
    ... AS> I'm looking for a scripting engine and would like to hear your opinions. ... It is cross-platform multi-language scripting engine. ... scripts using your favourite language. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: IE Script Error
    ... Dealing with Hijackware ... Tom wrote: ... I downloaded that 5.6 Scripting ... >> Reinstall 5.6 Scripting Engine ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Scripting Security
    ... This allows my application to provide scripting ... The question was, when hosting the scripting engine, how can I disable ... I never paid that much attention to the Microsoft Scripting engine back when ...
    (microsoft.public.scripting.vbscript)
  • Incompatible version of the RPC stub
    ... Internet Explorer Script Error ... Windows 2000 version of the Windows 5.6 Scripting Engine instead of ... problem I had that I thought the scripting engine would fix.) ...
    (microsoft.public.windows.inetexplorer.ie6.browser)