Legato Samples

A number of samples have been created using Legato and made available to aid developers in understanding how the script’s functions operate. Some files are zipped and must be decompressed using a suitable program. Certain scripts, such as hooks, may need to be moved into the “Scripts” folder in the application’s installation directory in order to run the script via a ribbon command within your GoFiler application. In order to test such files, the underlying application will require a restart to enable the registration of the hook to the ribbon.

Sample files may be available as a Legato Script (*.ls or LS), a resource compiler (*.rc or RC), a menu script (*.ms or MS), or a compressed file (*.zip or ZIP) if more than one file is necessary for the operation of the sample script. Note that some browsers may require that you right-click and Save As or Save Target As to download the file. Otherwise the content will open in the browser window.

General Legato functions

Fahrenheit to Celsius Table (float)

Create Simple Fahrenheit to Celsius Table using floating point logic.

Download: LS  ZIP  

Revised: 12/16/2014

 

Fahrenheit to Celsius Table (int)

Create Simple Fahrenheit to Celsius Table using integer logic.

Download: LS  ZIP  

Revised: 12/16/2014

 

Legato Data functions

Convert EDGAR Company IDX to CSV

A script demonstrates CSV functions and the FormattedTextToArray function.

Download: LS  ZIP  

Revised: 12/16/2014

 

Load and Save CSV as a Table

A small program that demonstrates the use of CSVReadTable and CSVWriteTable functions by loading statistics from a file, makes a minor formatting change and then writes the data to a new file.

Download: LS  ZIP  Data  

Revised: 12/21/2014

 

Legato Dialog functions

Combo Box Controls A (Simple)

Example of coding combo box style controls exhibiting various combo box features.

Download: LS  ZIP  RC  

Revised: 12/16/2014

 

Combo Box Controls B (Drop Style)

Example of coding combo box style controls exhibiting various combo box features.

Download: LS  ZIP  RC  

Revised: 12/16/2014

 

List Box Controls

Example of coding list box controls exhibiting various features.

Download: LS  ZIP  RC  

Revised: 12/16/2014

 

Property Sheet Dialog

Example of a multiple tab dialog box.

Download: LS  ZIP  RC  

Revised: 12/16/2014

 

Simple Dialog

Example dialog with inline resource using a text "edit" control.

Download: LS  ZIP  

Revised: 12/16/2014

 

Legato EDGAR functions

Decompress EIS File

Decompress EDGARLink Internet Submission File to plain EDGARLink XML file.

Download: LS  ZIP  

Revised: 12/16/2014

 

Legato File System functions

Enumerate Folder

Demonstrates basic folder enumeration via GetFirstFile and associated routines.

Download: LS  ZIP  

Revised: 12/16/2014

 

Legato hooks

EDGAR Submit File Hook Example

Example of setting a hook on a menu function.

Download: LS  ZIP  RC  

Revised: 12/16/2014

 

Legato Internet functions

Tiny FTP Browser

This utility demonstrates the FTP SDK functions as part of Legato.

Download: LS  ZIP  RC  

Revised: 12/16/2014

 

Legato Project functions

Enumerate Project Files

Function that loads a table with all the project entries and their properties.

Download: LS  ZIP  

Revised: 12/01/2014

Additional samples are available with step-through instructions on the Legato Developer’s Corner of our blog. Each Friday, we explore new functions and create scripts to accomplish both simple and complex tasks.