Macro Express (3.5) Expert User Checklist
Last revised: 12/14//04/r3
1. Installation -- Starting the Program -- Start Up Folder -- Also on PCAmigo -- 1a. Macro Express is new -- 1b. Macro Express already in use -- 2. Master Files & Number pad -- 3. Editing the Master Files: Charge to Prep. RLIN/OCLC Import Files. 040 -- 4. Attachments. Importing Files from Attachments -- 5. Exporting -- 6. No Activation -- 7. Popup Menus. 8. Disable/Enable -- 9. Diacritics -- 10. Macro Express System Key Sequences -- 11. Training Suggestions -- 12. Search Macros -- 13. Checklist for Creating New Macros -- 14. Aborting -- 15. ExportQ -- 16. Update Procedures -- 17. Help
1. Installation. Macro Express 3.5 will be pushed out by WW&DCS to technical services workstations. The program will be preregistered.
If Macro Express 3.0 has not been installed, the Macro Express default (blank) file, macex.mex will be the one enabled.
If Macro Express 3.0 has already been installed, the file enabled at that time (usually diacritics.mex or functionkeys.mex) will continue to be the default file, although the new master files will also be in the Macro Express folder. However, if the staff member has already had 3.0 installed and has used macex.mex as the default file, and has stored all macros in that file, any macros added to the legacy macex.mex file will be retained.
The morning of the pushout, logging in will take somewhat longer than usual as the program installs. The installation of 3.5 will not be to Start Up. Staff members who expect the macros to run in Voyager may be surprised that the macros "don't work" if the program is not manually initiated. To initiate the program the staff member will have to follow the sequence Start button-->Programs-->Macro Express-->Macro Express 3.5 in order to start the program.
Many staff members will prefer to have the Macro Express program in their Start Up folder, especially with recent modifications that suppress the splash screen, the text window, and the program window and automatically place the icon in the start up tray. Expert users will need to set the Preferences or instruct staff in how to do so. Options-->Preferences-->Startup <last item in the list>-->Check "Run on Windows Startup" (all other options should be unchecked).
Macro Express 3.5 will also be available via PCAmigo. New technical services workstations will have Macro Express 3.5 preloaded and preregistered. If Macro Express is not registered at the time of installation, it is only usable for a trial period of about a month. TIP: To register manually, click on Help and select License Information; enter Yale University Library under User Name; obtain the registration number from the WWSG liaison or copy the number from a registered program.
1a. Staff who currently lack Macro Express: staff member will need to decide which master file to enable. See 2. below for details. Expert user may need to show or help the staff member to enable the appropriate file. To enable a macro file:
-Click on the Folder icon on the Toolbar (or use File-->Open Macro File)
--Verify that the "Look in" is Macro Express3
--Doubleclick on master1.1D.mex or master1.1N.mex (or click once and click the Open button). Whichever file is "Open" becomes the enabled file; only macros in the Open file can be used
1b. Staff who currently use Macro Express 3.0. Their Macro Express 3.0 program will be overlaid by the 3.5 program. Generally staff who already have Macro Express will be using either the diacritics.mex or functionkeys.mex file or toggling between them. Their 3.0 default files will remain their defaults, but they will be able to import any new macros from the master files into their default files. In the unlikely event that the staff member has already created files named master1.1N.mex or master1.1D.mex in 3.0 , the macros in those files will be wiped out when the files included in 3.5 overlay them. Because a number of the familiar macros have been updated, it is strongly recommended that even staff who are already using the diacritics.mex and/or functionkeys.mex files enable the master1.1N.mex/master1.1.D.mex files and import any custom macros or settings from the old files to the new master files. Retain the old files as backup! (And in case you forget to import a custom macro on the first pass)
2. Master files: master1.1D.mex and master 1.1N.mex. Keep both files. To avoid confusion, be sure that these master files are kept in Program Files-->Macro Express. The master1.1D.mex file has all the function key macros included on master1.1N.mex plus the full set of diacritics. In the future, if a new staff member takes over a workstation where Macro Express was previously installed and used, replace the master files via PCAmigo to ensure that the hotkeys correspond to the documentation, since the previous user may have assigned undocumented hotkeys to the master file resident on the workstation, and because the master files on PCAmigo will cumulate new macros added since the original distribution. Prior to loading the master files from PCAmigo, rename the old master files in the workstation Macro Express folder. This will allow you to import macros from the renamed files in case they contain any useful undocumented macros.
NUMBER PAD. On master1.1D.mex, heavily used diacritics are mapped to the number pad roughly corresponding to the NOTIS keyboard, as well as to the regular keyboard. If the master1.1D.mex file is being used, you can turn off the diacritics on the number pad by holding down the WIN key. Alternatively, you can switch to the master1.1N.mex file with the key sequence Ctrl+Number pad 5, since master1.1N.mex does not have diacritics mapped to the number pad. Toggle back to master1.1D.mex with the same Ctrl+Number Pad 5.
Charge to Prep (F7) is provided for use in the Circulation module that will enter the most heavily used patron code (for Cataloging, this will be a specific Prep. Team patron code assigned to members of a team). This macro must be edited to include the appropriate patron code digits for the particular team. To edit,
3.1. Find the macro in Macro Express edit. Click on the Nickname column to sort by name (Charge to Prep); or click on Activation to sort by key (F7).
3.2. When the macro is found, double click on its listing. Under Macro Script in the right window, double click on Text Type: prptm****.
3.3. Text type Keystrokes window will open. Replace the text prptm**** with the appropriate patron code for the unit you need to charge to. Click OK.
3.4. Click on File Menu and click on Save.
3.5. Test the macro in the Circulation module.
3.6. Cataloging units may want to clone the macro and assign to different function keys for other heavily used patron code charges.
IMPORT FILES. Expert user needs to make sure there is an import.dat file in OCLCIMP and pass.sav in RLINIMP. Make sure the oclc export path on passport is: c:\voyager\catalog\oclcimp\import.dat <NOT export.dat> Explanation: the macros to open the rlin and oclc import files will be looking for import.dat and pass.sav files. Note that the updated OCLC and RLIN import file macros also map to the appropriate font before opening the import file.
040 (Ctrl + F12) and Delimiter 040 (Shift + F12). If the cataloging unit does not use MARC21 code CtY, their expert user will need to add the appropriate code to the macro in both the master1.1D.mex and master1.1N.mex files as follows:
3a.1. Open the Macro Express window.
3a.2. Under the Nickname column find the macro listing for 040 or 040 Delimiter $d CtY and doubleclick on the listing
3a.3.Two subwindows, Commands and Macro Script will open.
3a.4.Under Macro Script, find Text Type line with CtY and doubleclick on it.
3a.5. Keystrokes window will open. Change the text to the appropriate MARC21 code.
3a.6. Click the OK button at the bottom of the Keystrokes window, which will close.
3a.7. Click on the Save icon on the Macro Express toolbar (or File-->Save)
3a.8.Click on the Macro Explorer icon under the Actions column to return to the Macro list
3a.9.Minimize the Macro Express window
3a.10.Test the macro in the Cataloging Module.
To import a macro from an e-mail attachment file:
4.1. Your target file (generally the one you have up when you’re working in Voyager) should be opened in Macro Express
4.2. Click on the Import Macro button on the toolbar
4.3. Click on Open File to open the Import Macro window
4.4. Click on the Up one level icon until you reach Eudora, then open the Attach folder
4.5. Find the appropriate *.mex file and double click on it. The Import Macros window will open
4.6. Select the macros you want to import with your mouse (or click Select All if you want all of them). This will activate the Import button.
4.7. Click on the Import button. You will generally get a successful import message.
4.8. If an imported macro has the same activation (hot key) as a macro already in your target file, you will get a notification message. Click OK. The imported macro will import without an activation. You can either assign a different activation, or delete the macro with the conflicting activation and then assign that activation to your imported macro. (You would do the latter if the imported macro is a replacement for a previously existing macro.)
5.1. Open the Macro Express file containing the macros to be exported.
5.2. Click on the Export Macro icon on the toolbar (or use File menu-->Export-->Export Macros). The Export Macos window will open.
5.3. With the mouse, select all macros to be exported, then click on the Save File button. The Export Macros To window will open (generally in the Macro Express folder; you probably want to save the file in this folder)
5.4. Assign a name to the file in File Name slot and click the Save button. (The file extension.mex should be provided automatically)
6. "No Activation." Some No Activation macros have very specific functions and staff may not want to utilize limited key assignments on them. Other No Activation macros are used in macro strings where a hotkey activation is not necessary.
If the key is to be activated, the range Ctrl+Shift, Alt+Shift, or Win+Crl should be used (these ranges have been set aside for custom uses). To activate, i.e. assign to a hotkey:
6.1. Open the macro file, and with the mouse select and double-click on the macro to be activated. Usually the Script tab windows (Commands/Macro Scritp) will open. If so, change the display by clicking on the Properties tab. The Properties windows will open (General/Activation)
6.2. In the Activation window (right), click in the Hot Key box. This will enable the Set Hot Key button.
6.3. Click on the Set Hot Key button. The Set HotKey Activation window will open with a default hotkey value selected. Click OK unless a different hotkey is preferred.
6.4. Click on the Macro Explorer icon at the top of the far left column. You will be prompted to save the change. Click OK. (Or, click on the save icon on the toolbar)
Alternatively, you can add a No Activation macro to an enabled Popup Menu without assigning a hotkey to the macro.
7. PopUp Menus. The master1.1D.mex file includes 2 popup menus: heavily used diacritics & acquisitions macros. The master1.1N.mex file has only the acquisitions macros. In the standard configuration, popup menus should be assigned to the F12 key. To create a popup menu you must have already have a set of macros in your *.mex file. With the appropriate *.mex file open,
7.1. Click on Add a macro button (or menu MacrosàAdd a macro). Add a Macro window will open.
7.2. Click on the Popup Menu radio button.
7.3. Assign a hot key, then click on the now activated Build a Menu button.
7.4. Available macros will appear in the upper window, and you click on the Add to add to your menu. Be sure to click on the Properties tab to assign a Nickname and the Scope tab to restrict to Catalog.exe.
7.5. Macros run from the Popup menu do not need to be assigned to a hotkey (i.e., they will run even when No Activation has been selected)
7.6. You can edit the Popup pad, adding new macros with the insert arrows, taking off macros you find you don't need, and you can move the macros up and down with the up/down arrows on the right. Or, you can edit one of the preset popup menus that come with the master files, selecting the diacritics you use the most (or the least) or the function keys you use the most (or the least). The Popup menu is sometimes most useful for infrequently used macros since the key sequence doesn't need to be memorized or looked up.
7.7. TIP: the nickname begins with Popup menu if you need to find the menu in the macro list and you haven't assigned a category to it.
7.8. To run a macro from a Popup pad:
a. Position the cursor where the macro should begin running
b. Press the Popup pad hotkey to activate the menu display (do not activate the Voyager window before performing 8.7c following or the macro will not run)
c. Either double-click on the macro nickname in the menu display or, type the number or letter to the left of the nickname. The menu display will close automatically and the macro will run.
7.9. TIP: If you import a Popup menu from the master file, select and import all of the macros to be used in the Popup menu at the same time.
Both of the preset popup menus are disabled. To enable the one or the other, see 9.
8. Disable/Enable. Macros disabled in the master files are considered to be generally useful enough to be assigned a standard hotkey, but require training in their use, so they are distributed in the disabled status so untrained staff will not run the macro accidentally. To enable a disabled macro:
8.1. Open the macro file, and with the mouse select and right click on the macro to be enabled. The menu options will open.
8.2. Click on Enable Macro on the menu.
8.3. Click on the Macro Explorer icon at the top of the far left column. You will be prompted to save the change. Click OK. (Or, click on the save icon on the toolbar)
9.1. there is a table listing all the Macro Express key mappings for diacritics and special characters at: http://www.library.yale.edu/cataloging/diacriticsvoy.htm
9.2.The number pad has been mapped to the old NOTIS diacritics at Normal. The old NOTIS number pad diacritics at Shift are mapped to ALT + <keypad number>. There are some NOTIS diacritics on the keypad that were mapped to the CTRL + <keypad number>, and the mapping follows NOTIS in that case.
9.3. The same diacritics are also listed on a popup menu evoked by pressing F12. (If the menu has been enabled) If a diacritic listed on the popup menu is doubleclicked it will be entered in Voyager wherever the cursor has been placed. (A diacritic can also be entered by pressing the key for the number or letter to the left of the listing or by selecting the listing and pressing Enter.)
9.4.To turn off the diacritic mapping on the number pad (i.e. to enter numbers), press CTRL + Number pad 5. This macro will toggle Macro Express from the master1.1D.mex file to the master1.1N.mex file. To enter diacritics again, toggle back by pressing CTRL + Number pad 5 again. Alternatively, if the master1.1D.mex file is open, hold down the WIN key and press the number pad numbers. (The latter is not a toggle & it is unclear why it works.)
9.5. Staff should be warned that pressing the Voyager CTRL+d sequence (which turns on the alternate character set) will cancel the Macro Express diacritics macros (the diacritics macros include Ctrl + d, so pressing CTRL + d before running the macro prevents the software from evoking the alternate character).
9.6. To enter diacritics when master1.1D.mex [or diacritics.mex] is on, NUM LOC must be on
9.7.Diacritics mapped to the keyboard follow the Windows ALA Keyboard Map. Diacritics at “normal” position are generally evoked with Ctrl + Alt; diacritics at “shift” position are generally evoked with Ctrl+Alt+Shift. (There are some exceptions that occur when the key sequence conflicts with a Windows or Macro Express sequence)
10.1. Ctrl+Alt+Shift+z Opens the list of macros that apply to the topmost window. If you click on any of the macros displayed on the list, it will run. To close the list, use the standard Windows command Alt+F4.
10.2. Ctrl+Alt+Shift+v. Terminates Macro Express. (To re-start: ProgramsàMacro ExpressàMacro Express 3 <NOT Macro Express 2>
10.3. Ctrl+Alt+Shift+w Opens Macro Express Editor
11.1. Practice use of macros in torbis rather than prodorbis
11.2. Practice in torbis:
when you depress a key sequence to run a macro, you must take your fingers off the keys for the macro to execute.
11.3. Practice in torbis:
The Erase-End-of-Field (EOF) macro has been mapped to Shift + Delete in the current macro file configuration. On NOTIS, EOF was on the Page Down key. The Page Down function has been retained in order to facilitate navigation in lengthy menus, something that was not a feature in NOTIS.
11.4. Practice in torbis: Text macros (all diacritics, most MFHD macros) depend on the correct placement of the cursor in order to run properly (and not replace the wrong text!).
11.5. Walk through each of the macros listed on the standard function keys table (note that this table lists macros that include all the function keys as well as important macros that are NOT mapped to the function keys and which are not listed on the template). URL for the table listing standard macros:
11.6. There is a template for the function keys at:
NOTE: The template must be printed on legal size paper.
12.1. All macros are distributed as No Activation. However, each macro has a default hotkey that will be prompted when the macro is activated. Individual users are free to map a given macro to another hotkey, especially if it is expected that the macro will be heavily used. Be sure to consult the complete keyboard mapping table to make sure that the hotkey selected for re-map is available (i.e., don't re-map to a Macro Express system hotkey, a Window key sequence you also need, or the hotkey of another macro you expect to use).
12.2. The macros are written to run in the Cataloging, Circulation, or Acquisitions modules. When switching between modules you can run the macros in all three modules in sequence, except that the Staff Headings searches are not available in the Circulation or Acquisitions modules. CAUTION: If you run multiple instances of any single module, e.g. two instances of the Cataloging module, for any given session, the first instance in which any Search macro is run will be the only instance in which the Search macros will run. So, if a Search macro is run in the second instance of the Cataloging module, the Search macros will then only work in that second instance and will malfunction if run in the first instance of the Cataloging module. To reset the Search macros close all Voyager modules and terminate MacroExpress, then restart the Voyager modules and MacroExpress.
12.3. The macros have been created for indexes in PRODORBIS (production Orbis). CAUTION: some indexes in PRODORBIS are not in Torbis (the test & training database). If you are in Torbis and try to run a macro for an index not active in Torbis, the macro will search for the index indefinitely, or until you abort it. Until the macro is aborted, you cannot run any other macros.
Some Search macros work only in Orbis and other Search macros work only in LCDB. They simply don't work, so they don't need to be aborted if run in an inappropriate database
12.4. Most of the Search macros run with a delay of 175 microseconds following the Text type command. The delay will vary depending on the workstation, and in some cases no delay is necessary. If the Search macro retrieves the wrong index, the usual solution is to increase the delay to around 300 microseconds. To change the Delay speed: double-click on Delay; a Set Delay window will open. Change the delay from 175 to 300 and click OK; then save the updated version of the macro. (Don't forget to save the macro before you test it!) Expert users can also experiment to see if the macro will run if the delay is disabled. To disable: select the Delay line and click on the ! in the left gray column and save; a red line will cross out the Delay command. To re-enable: select the Delay line and click on the ! in the left gray column and save.
13.1. The program under which you will run your macro should be running.
13.2. Make sure your target file is up. Click on New Macro button on the toolbar or from menu, Macros-->Add Macro. Add Macro window will open.
13.3. From the Add Macro window, select the hot-key to be used to activate the macro. Assign your hot-key from Alt + Shift, Ctrl + Shift, or Win + Ctrl only. These ranges have been designated for individuals and specific teams. Your team may want to reserve one of these ranges for macros used by all or most members of the team. ALTERNATIVELY: select No Activation if you intend to map the macro to an existing Popup menu. Now click on the Scripting Editor button; the Scripting Editor window will open (with 2 subwindows Commands and Macro Script); note the tabs above the Command Subwindow: Script, Properties, Scope, Security, Notes.
13.4. Before you begin writing the script, click on the Properties tab and assign a Nickname; click on the Scope Tab and click on the Program Specific radio button, then click Select. Select Programs window will open. IMPORTANT: You must select a specific program or programs under which the macro is allowed to run. If you do not specify a program, the macro will run globally (the default selection) and interfere with non-Voyager programs like Eudora or even general Windows functions.
13.5. From the Select programs subwindow, select the program under which the macro will run. For the Voyager cataloging module, generally this will be CATALOG.EXE. Clicking on the program name will select it to the Selected Programs subwindow. Click the Add button. CATALOG.EXE will now appear under Select from a list of installed Programs; there will be a box Run if on Top checked below. Now click the OK button. Now click on the Script Tab to go back to the Scripting Editor.
13.6. To create a simple text macro, click on A Text under Commands, then double click on Text Type. Text Type direct editor window will open.
13.7. To enter a function in the text type string, click on the function name in the menu. It will appear in brackets. Key in unbracketed text for the macro to type in. Click OK to save the string. <to save the macro itself, you need to click on the save icon on the toolbar after clicking OK>.
13.8. Test macro. Sometimes it helps to save only a short string of commands and test to make sure the short string works before adding more commands. In Voyager, sometimes you need to include F8 to allow editing within a cell.
13.9. In some cases, you need to insert a delay of ca. 10 microseconds between command strings. Click on Timing under Commands, then double click on Delay. Be sure to select the radio button for microseconds and enter the number of microseconds. (The default is seconds so you must re-select)
13.10. When you add a command to a string, you may need to move it up or down in the sequence. Use the Up/Down arrows on the side of the window to do this.
13.11. Housekeeping. Keep a backup file of custom macros (macros assigned in the ranges reserved for customization). It should be relatively easy to obtain a copy of the standard macros, but no one will ordinarily have a copy of your custom macros.
13.12. Macros based on recording of mouse positions are not readily transportable and in some cases may not work if you re-size your window. Use the Script Editor to record key strokes when possible.
13.13. The same function key or key sequence can run different macros in different modules. (If the scope is set properly)
14. Aborting. Multiple macros cannot run concurrently in Macro Express. Most macros close after running through a prescribed and limited sequence of commands. However, some macros are set to close only after a prescribed number of sequences have run, or after a defined period of time,* or some other condition occurs. If that condition never occurs (as with some Search macros in Torbis), the macro will run indefinitely. A macro is running when a running figure is in the Start tray, usually on the bottom left corner of the Windows display. The running figure will replace the Macro Express "crossed M" as long as the macro is running. If a macro that is usually enabled does not run, check the Start tray; another macro may be running.
To abort the macro, right-click on the running figure. You will be prompted to abort the macro; click OK.
Alternatively: Abort the macro by using the key sequence Scroll Lock + Break (usually above the number pad). This might be necessary if the macro includes mouse movements, which could stop the user from being able to right click on the running icon.
*An example is the Circulation Override macro, which is set to run until 100 charges have been made; if fewer than 100 charges are made in the session, the macro will need to be aborted. However, if it is not aborted, it is set to time out after 2 minutes. If staff use the Override macro, expert users should be sure they know how to abort the macro.
15. ExportQ, ini file changer, and Macro Express. Earlier versions of ExportQ and the ini file changer did not play well with Macro Express. Upgraded versions of the local software appear to work with 3.0, but it remains to be seen whether problems will reappear with 3.5.
16. Updates. When Voyager becomes Unicode compatible in the spring, the intention is to push out a single Macro Express master file, since diacritic entry will be greatly improved in the Voyager Unicode version. Until then, files containing macros created since the original 2004 master files will be pushed out as newmacros2<3, 4, etc.>.mex. Staff or expert users will need to import the new macros from the update files into the master files of the individual workstations. The master files on PCAmigo will cumulate the new macros; with each newmacroX.mex release; the recumulated master files will be renamed to coincide with the update release, e.g. master1.2D.mex and master1.2N.mex. Expert users should make sure that new staff download & use the latest master file cumulations to their Macro Express folders.