-
Notifications
You must be signed in to change notification settings - Fork 18
Scripting
Grigoriy Mylnikov edited this page Oct 18, 2020
·
2 revisions
Many tools in Hextor use a scripting engine.
Currently, I use IActiveScript interface of Microsoft JScript library. It may be replaced by something more C++-like in future.
- "Script" tab allows to execute arbitrary scripts
- In DataStruct analyzer, script expressions can be used to calculate array size and for conditional constructions (if/switch)
- Script expression can be used in "Modify with expression"
- ... much more planned
Program objects are exposed to scripts via [API] attribute. Currently, this objects are available (see sources for additional info):
- MainForm (members of this object is available in root namespace)
- TEditorForm for every open editor
- TEditedData inside every TEditorForm
- ds: TDSField - currently shown DataStruct from "Struct" tool tab
(more documentation coming soon)