Global object has properties and methods that provide core functionality of Hex Editor Neo to running scripts. In addition, it provides a set of convenient script execution infrastructure methods.
The following methods are provided to help script authors to achieve their tasks in a more convenient and fast manner:
|log||Prints the message to the Console.|
|alert||Displays the message box and optionally asks for user choice.|
|input||Requests the user to enter text string.|
|async||Schedules a given callable for delayed execution.|
|cancelAsync||Cancels scheduled delayed execution.|
|delay||Returns a promise which is completed in a given time.|
newDocument method and its overloads are used to create new documents.
Shell object provides the following methods for opening various kinds of documents:
|openFile||Binary files, Intel Hex and Motorola S-Records|
|openVolume||Volumes (logical disks)|
|openDisk||Disks (physical disks)|
|openHexAsync||Intel Hex and Motorola S-Records|
activate method activates a given document view, documents property returns a list of all opened documents, while closeAll method closes all opened documents.
exportSettings and importSettings exports and imports all application settings to an external file. exportConfiguration and importConfiguration does the same with UI settings like toolbars and tool windows layout. resetConfiguration resets the default UI configuration.
displaySettings method opens the Settings Window.
restart allows the script to restart Hex Editor Neo, optionally displaying a message to the user.
findInFilesAsync method starts the Find in Files operation and replaceInFilesAsync method starts the Replace in Files operation. cancelFindInFilesOperation method may be used to cancel an ongoing Find in Files operation.
Use the findProcess and findProcesses methods to locate the running process objects, getting the IProcess interface. Use the openProcess method to open the process window for a given process and get its IProcessWindow interface back. activeProcessWindow property holds the reference to an active process window or
null, if there is no such window.
activeDocumentChanged event is fired when the active document is changed in the editor. activeViewChanged event is fired when the active editor window is changed.