Allows run scripts from application and shares any
application object inherited from TPersistent with script
interpreter engine. TekWSHControl script component makes it possible to:
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.
Version 2.6 basic features and improvements: (See previous history)
- C++ Builder 5 and 6 supported (excluding wrapper expert functionality)
- Access to methods of parent classes of Delphi objects supported
- Using Active Python language is attested
- Demo projects set is enhanced by demonstration of using multiple instances of scripter at a time, using Lua script and Python script languages etc.
- Correct script executing interruption from Delphi routine called from script supported
Screenshots
| Online help
| Article
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) beside script
sources - it means adding, deleting, operating objects and
controls, defining event handlers, running 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.
- You just don't know Delphi perfectly, but know
Visual Basic, Java Script, Perl, Python, Rexx, TCL, XSLT, PHP etc... but
just program (or part of complex system) in Delphi must be made?
Make just a template application in Delphi with ekWSHControl and
realize all functionality with your preferred script
language - Windows Script Control will run it from your
elementary Delphi program.
- For applications which must run scripts, i.e. installers.
- any other task requiring the 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, PHP, XSLT 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.
- You can use published properties, public and published methods of
Delphi objects within scripts.
- You can use variables, procedures and functions declared in
interface sections of Delphi units.
- 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 such present in scripts
body).
- Simplicity of use.
- Delphi 4, 5, 6 and 7 support.
Version history:
Version 2.6 basic features and improvements:
- C++ Builder 5 and 6 supported (excluding wrapper expert functionality)
- Access to methods of parent classes of Delphi objects supported
- Using Active Python language is attested
- Demo projects set is enhanced by demonstration of using multiple instances of scripter at a time, using Lua script and Python script languages etc.
- Correct script executing interruption from Delphi routine called from script supported
In the final version, all possible bug and issues will be corrected; help file and documentation will be updated. We consider now also including Delphi8 support - it will be introduced in v2.6final or in next major (v.3.0) release - have no decision yet.
Version 2.5 basic features and improvements:
- Public methods of Delphi objects calls from script supported
- Delphi unit routines (procedures and functions) from script supported
- Access to Delphi unit variables from script supported
- Minor bugs in wrapper expert fixed
Version 2.0 features and improvements:
- Advanced support of published method calls from scripts
- Advanced support of script routines calls from Delphi applications
- Advanced event handlers support (for script procedures as Delphi event handlers)
- Set of universal script language extensions added
- New methods and properties to handle script errors, pass objects as script routines parameters, etc.
- Minor bugs fixed
- Delphi7 support
- Help system updated
- Demo examples pack added (contains demo projects showing all of control features using)
- Other minor changes, fixes and improvements
- Licensing politics changed
Version 1.2 : first public released version
Screenshots
| Online help
| Article