exec32 Scripting Language


Integrated Web Browser and Context Pages

The Microsoft Internet Explorer web browser control has been integrated into exec32. It fills a pane to the right of the file pane. When pages are browsed to (by selecting a web page from the Help pull-down menu, or by clicking a link), they are loaded into this IE instance. The web browser has the ability to toggle to full screen.

exec32 introduces a new file type, with the extension of "hte". An hte file combines an html page with an exec32 script. You can make links in the page that will:

Pages (of the name "exec32.hte") can be created in your work or project directories. These pages are used to display information and graphics in context with the directory. When you use exec32 to change to a given directory, its page will be automatically displayed. If a directory does not have an exec32.htm page, the default page is displayed.

You can use the context pages to increase productivity:

The toolbar provides for certain default actions (Home, Search, Favorites, History) that when clicked, will run exec32 scripts. You can edit the scripts in order to customize their behavior. For example, you can modify your Home button to retrieve data from a web site and / or local files, parse and format the data, write a page out on the fly, and the display that page, similar to an ASP web server. You can write your own Favorites support.

How Links Work

When a link is clicked, the event is captured. If the target is a web page, the event is sent to IE, as is normal. If the target of the link begins "exec32://", then a callback is made into exec32, and IE does not receive the click. The link string is parsed according to these rules:

  1. If any occurances of "%20" are found in the link string, they are replaced with a space.
  2. If the link string ends in ".e", exec32 will assume we have a script, and will attempt to open it and run sub main().
  3. If the link string contains an ".e#", exec32 will assume we have a script with a procedure entry point other than main(), and will attempt to open it and run the sub specified to the right of the pound (#) sign.
  4. If the link string contains an "ilp#", exec32 will execute an in-line script procedure.
  5. If a semi-colon is found in the string, the string to the right of the semi-colon (if present) is assumed to be a start-in directory, exec32 will change drives and directories to there. Then the string to the left of the semi-colon is presumed to be an executable statment, and will be shelled (executed, with normal focus).
  6. If we changed directories (in the previous step), we change back, such that the current directory is restored.

Back...