Ekas Software Windows Script Host Control for Delphi Help
Calling methods of Delphi objects from script
Quick start: common questions
To make calling Delphi object methods from script possible, you need to use special expert (contained in ekwrpexpXX package) to generate import units and add them to project.

This expert is very simple in use. After installing ekwrpexpXX package, a "ekWSHControl: make wrapper for unit..." item appears in the "Help" submenu of IDE menu. Make required unit current in IDE (open it in editor) and click to this menu item. Simple dialog containing a list of all classes and their public/published methods will appear. Then check all methods you need to make accessible from scripts and click "Create unit" button. Import unit will be automatically generated and added to project. That's all: then you can call all imported procedures and functions from script.


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