Hex Editor Neo has the full-featured built-in script editor. You can open script files (TypeScript *.ts or JavaScript .js) in the editor using the File » Open » Open File… or File » Open » Open Script… commands, using Drag&Drop from other applications, or create new empty script file using the File » New » New Script File command.
Macros » Start Recording command, followed by a Macros » Stop Recording/Playback command automatically generates a script file, which is then associated with a named macro. This script may also be opened in the editor for review and modification.
The script editor has the full knowledge of all application objects, their interfaces, their methods and parameters, provides syntax coloring, method and parameter completion and built-in brief documentation.
Syntax errors are highlighted directly in the editor, simplifying creation of a syntactically valid code.
Modified script files are marked with an asterisk (*).
You may start script execution using the Debug » Run Script command. Script debugging is started using the Debug » Debug Script command.
The results of the script execution is provided in the Output Window.
You can also have a script automatically executed on startup using the following command-line syntax:
.\HexFrame.exe /run "c:\full\path\to\script.ts"
Use the /run-with parameter to pass additional string to be added to the end of the script file:
.\HexFrame.exe /run-with "c:\full\path\to\script.ts" "additional code"
This will load a given script file, append the additional code to the end of it and start script execution. This allows you to pass parameters to script files, for example:
// my-script.ts
function process(offset: number, size: number)
{
// ...
}
.\HexFrame.exe /run-with my-script.ts "process(0x1000, 0x100);"
You may also directly specify the script code in a command-line using the following syntax:
.\HexFrame.exe /cmd "script code"
For example, the following command-line will open Hex Editor Neo and create a new document:
.\HexFrame.exe /cmd "newDocument()"