Windows Script Control: no OLE, COM, ActiveX to use objects in scripts


Ekas Software presents Windows Scripting Host Control for Delphi, allowing to use all WSH advantages in Delphi applications.

Lets to run scripts from application and shares 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) 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 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, 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.

-- 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 and 6 support.

-- Native VCL code. You can port it to any version of Delphi32 (2,3,7) very easy if have purchased source code.

Related Discussions
  • USING DLLS (2001-01-04 01:47:50)
    Hi again Goober ... :o) Let's take NETAPI32.DLL as an example. This DLL is created by Microsoft and the explanation of its use is described in...
  • DOT ON SCREEN (2001-01-03 05:42:55)
    Delphi does not support a Pixel function with a HDC, you have to use the Windows-API-function COLORREF SetPixel( HDC hdc, // handle...
  • HOW TO RUN DATABASE APPLICATION ON THE INTERNET (2017-06-09 10:54:22)
    Well, in design I think there is already an issue. Backend is more then just a database with which you connect. There should be a complete layer...
  • HELP WITH CHDIR !!!! TURBO PASCAL VS DELPHI (2001-01-03 08:48:49)
    This is because the ChDir Procedure, the SetCurrentDir and SetCurrentDirectory Functions are changing the directory in the active process. Try...
  • ADD TO RESOURCE ON RUNTIME (2001-01-04 11:00:49)
    I think what you are asking is to change the .EXE file at run-time. Yes, it is possible, but nobody I found will share that information. If you...
  • REPEATING FUNCTIONS (2001-01-04 11:46:34)
    The OnIdle event is not hardware dependent. It is called when the program has idle time. The OnIdle event is in TApplication and is a warpper...
  • HOW TO CREATE SEQURE LOGIN TO DESKTOP APPLICATION (2001-01-05 11:30:01)
    I'm not pretty sure, what your intention is. One possible approach would be to use a edit-field, which cannot be "spyed out" by the usual password...
  • QUERY PARAMETER QUESTION...? (2001-01-05 00:44:03)
    there are two parts first is writing the script with variable and another is using bind variable eg- for first you can say query1.sql.text...
  • HOW TO LOAD INI INTO A DLL (2001-01-05 16:43:45)
    unfortunatelly I haven't found anything interesting in the win32api help. I tried different methods. It seems like it is loading the data while...
  • MANIPULATING WINDOWS OF OTHER PROGRAMS (2001-01-04 21:11:41)
    You need to use the EnumWindows API function to figure out the handle of each window that you want to manipulate (you may also need to use...
Latest News
Submit News Form Past News
Latest Forum Entries