Ekas Software Windows Script Host Control for Delphi Help
About Windows Scripting Host Control for Delphi
Windows Scripting Host Control adds fully functional support of Windows Scripting Host engine to Delphi application.
Description
Control lets to run scripts from application and to share any application object inherited from TPersistent with script interpreter engine. TekWSHControl component allows to completely manage application objects within script, including operating with published properties, running methods, setting script procedures as event handlers etc.

WSH Control is also the very easy way to make you application as extremely enhanceable system managed by outside scripts - so even no need to edit source code (or rebuild projects) to change and/or enhance its functionality. 

Why you need a Windows Scripting Host control? There are many possible reasons. As examples:

 -- You want to develop some application but don't know all desired functionality now. So it is just a case to include ekWSHControl! Place control on the form and make some interface to read scripts or script statements from outside storage (files, database blob fields, manually entered in memo, webserver, other applications using communication protocols etc.). Then your application can read and execute scripts at any moment you want. And you can do everything with your application's objects (inherited from TPersistent) and their published members beside script sources - it means adding, deleting, operating objects and controls, defining event handlers, running object methods and more.

 -- For applications to be controlled remotely via web services: place ekWSHControl and make write some code to connect web server, get script body or statement and execute scripts received via internet or intranet - for manage application, change its configuration and functionality or simply execute VBScript, JScript or any other script (installed with your Windows) on local computer.

 -- For applications which must run scripts, i.e. installers.

-- any tasks which require scripting ability

Windows Scripting Host control for Delphi Advantages:

 -- Any script language supported by Windows scripting host can be used for scripts: VBScript and JavaScript by default, Perl, Python, Rexx, TCL, Lua and any other for which extensions are installed in Windows.

 -- No need to implement OLE-server functionality for application or any object to be shared with scripting engine.

 -- Any object descending from TPersistent can be added to script's namespace and operated within script environment, including all of its published members.

 -- Any object descending from TPersistent can be created within script and operated by script or by application after script is finished.

 -- Recently used events of VCL components can be handled by script procedures (and you can add new events very easy if having source code of TekWSHControl component).

 -- If control is added during script executing (in script procedure), event handlers for it are set automatically if any defined in script's body.

 -- If control exists independently from scripts, event handlers for it may be set just by one line of code (like "Panel1.OnClick:= ekWSHControl1.OnClickHandler", and then event handling is redirected to script's procedure "Sub Panel1_OnClick()", if it presents in script body).

-- Native VCL code.

-- Simplicity of use.

-- Delphi 4, 5, 6 and 7 support.


Ekas Software Windows Script Host Control for Delphi Help
Copyright (c)2002,2003 Ekas Software