View Categories

Scripting with HEScript

9 Topics

Introduction to Scripting with HEScript

Last Updated: September 20, 2025

ExeOutput for PHP applications are script-driven and feature a built-in script engine. An application is managed by a collection of scripts that are generated and compiled into p-code by ExeOutput for PHP. When the application runs, its runtime module executes these scripts to simulate a web browser and respond to user actions. You can, therefore,...

The HEScript Editor

Last Updated: September 20, 2025

The Script Editor is the primary interface for editing HEScript code. You can create, remove, import, and export scripts with the Script Manager. To edit a script, select it in the Script Manager and click Edit, or simply double-click the script. The script editor is also displayed automatically when you import a script. The script...

Adding HEScript Code to Your Application

Last Updated: September 20, 2025

HEScript allows you to extend the functionality of your PHP application, complementing PHP and JavaScript. This topic shows you how to quickly add an HEScript function or procedure to your application. For instance, you may have found some code on our forum that you want to use. Steps to Add Code In ExeOutput for PHP,...

Script Templates

Last Updated: September 20, 2025

Some HEScript scripts such as UserMain contain pre-defined events, i.e. functions which are called by the application at appropriate times. This topic describes these events. About the UserMain script The UserMain script is automatically created when a new project is started. It contains numerous global events that allow you to insert special commands. Event name...

Running and Calling HEScript Procedures/Functions

Last Updated: September 20, 2025

HEScript can be used in multiple ways: PHP and HTML pages HTML links JavaScript functions Global application events This topic explains how to call HEScript functions and procedures. Using HTML Links You can call HEScript procedures and functions from HTML links. Use the hescript:// protocol prefix (instead of http://) to tell the application to execute...

HEScript Function Reference

Last Updated: October 1, 2025

HEScript is specially designed to control application behavior and communicate with the Windows environment. There are many internal functions that can be called from your HEScript procedures and functions. Notes: Many internal functions are not listed here, as they may be used, for instance, in system HTML pages. Please ignore them or contact us for...

How to Run an Executable Program

Last Updated: September 20, 2025

This guide illustrates how to run an external program or a program compiled into your application. For instance, you may want to launch a program that you ship with your application. Running an External Program File Use the internal RunAProgram HEScript function to execute a program. You only need the path to the program file...

How to Prompt a User for Their Name Once and Store It

Last Updated: September 20, 2025

The goal of this script is to: Prompt a user to enter their name the first time they run the application. Store the name in a persistent global variable. Display the name on an HTML page. Steps We will name our global variable TheUserName. Step 1: Write the Script Go to the Script Manager, double-click...

How to Call DLL Functions

Last Updated: September 20, 2025

The script engine can import procedures and functions from external DLL files, allowing you to extend your application by calling your own DLL functions. How to Import a DLL Function in HEScript This is done with the external keyword. Syntax: function functionName(arguments): resultType; [callingConvention]; external "libName.dll" [name 'ExternalFunctionName']; For example, the following declaration: function MyFunction(arg:...