Investment Studio > Views > Macros > Managing packages

A macro package is a file in the <MACROS> directory which contains the code of one or more macros.

All macro packages associated with the selected ActiveX Scripting engine are displayed in the Macro view's package list:

The name of each package (displayed in the list) is also the name of the file (filename extension excluded).

If a package is active (checked in the list) its contents are loaded and available for execution. The contents of all loaded packages can be viewed together in the editor (to the right of the list) by selecting the "Active macros" tab:

When a package is selected in the list, it's loaded in the editor. The first editor tab shows the name of the file (filename extension included). When this tab is selected, the file can be edited.

The package list supports the following operations:

To sort the list alphabetically, click the Package header. Click a second time to reverse the sort order.
To find a package by name, right-click it, then use Find in the pop-up menu:

To change the name of a package, select it, wait a moment, then click the name to open its in-place editor. Press Enter to close the in-place editor and commit to the new name; press Esc to abort editing and revert to the previous name.

New names will be rejected if they are not valid filenames or if they are duplicates of exsting names.
To create a new package from scratch, press Ins (the package list must have input focus). Alternatively, right-click the list to open its pop-up menu, then use New in the pop-menu.
To create a copy of an existing package, right-click the package, then use Copy in the pop-up menu.
To delete a package, select it, then click Del. Alternatively, right-click the package, then use Delete in the pop-up menu.

Modifying the contents of an active package (i.e. editing or deleting it) automatically causes the selected engine to stop, reload the modified package and restart.

The package list can be horizontally resized by dragging the empty space which separates it from the editor panel.