Version 34, last updated by arst at Aug 17 01:45 2008 UTC

Scripting pages:

  • The Squirrel Language – This page looks at the default scripting language used in FWB.
  • NSIS Text Editor Mode – A comprehensive example where we develop an FWB extension (a MiniAppMode) to work with Nullsoft Installer scripts (NSIS) in a File Workbench text editor. The extension is programmed 100% in script.
  • Scripting API:s – An overview of important classes and functions used in FWB scripting.

It is also possible to embed other script engines in File Workbench.

Introduction

Squirrel is a light weight dynamic scripting language that is easy to learn. Since it has automatic memory management it is also safe.

Scripting FWB is straight forward. Many API:s in File Workbench are available for scripting:

  • Scripting file browsers
  • Scripting text editiors
  • Interacting with command prompts
  • Classes for easy access to text files of common encodings (Ascii, UTF8, UCS2. …)
  • Accessing regular expression engine from script (PCRE)
  • Creating new MiniApp windows
  • Programming extensions to any MiniAppType
  • Creating small tool bars and assigning keyboard shortcuts