User`s manual

5
Programming a macro (sequence of actions)
When programming a macro, each input and action are surrounded by braces { } and each press and
release of a key or mouse button must be defined, using a “-“ for the down action (press) and a “+” for up
action (release). Longer macros can be tedious to write so take advantage of existing macros and examples
as templates which can be edited.
Note: Macros normally play when the pedal is pressed, without waiting for release. If you want the macro to
play only when the pedal is released, use the special feature below, “Different actions on pedal press &
release.”
Note for Mac OS X: Modifier keys by themselves are not useful to assign to a pedal because one USB device
cannot modify another (modifiers are shift, command, option, control).
Macro examples
Example 1. Left pedal plays the word “go”:
{lpedal}>{-g}{+g}(-o}{+o}
Example 2. Left pedal plays left mouse double click (this macro normally requires a 125 millisecond delay):
{lpedal}>{-lmouse}{+lmouse}{125}{-lmouse}{+lmouse}
If this doesn’t work for you, try adjusting the double click timing in your control panel, or use two delays.
Example 3. Using modifiers within macros, playing “Hi Joy!" by pressing the right foot pedal:
{rpedal}>{-shift}{-h}{+h}{+shift}{-i}{+i}{-space}{+space}{-shift}{-j}{+j}{+shift}{-o}{+o}{-y}{+y}{-shift}{-1}{+1}{+sh
ift}
Note: The above macro “word-wrapped” to the next line. In your pedals.txt file, be sure that there are no
spaces or “Enter” actions embedded unintentionally within the macro contents.
Example 4. Macro plays “1+2=3” using the right pedal:
{rpedal}>{-1}{+1}{-shift}{-=}{+=}{+shift}{-2}{+2}{-=}{+=}{-3}{+3}
ADVANCED PROGRAMMING FEATURES FOR MACROS
Several special features can be incorporated into macros. A different action can be produced on the press
and on the release of the pedal. Also delays can be programmed within a macro, and slower output can be
selected if necessary.
Different actions on press and release
Place braces with a single space, { } (not {}) in between the “press” and “release” actions.
Example 1. Press produces F1 function key and release produces F2 function key:
{lpedal}>{-F1}{+F1}{ }{-F2}{+F2}
Example 2. Pressing pedal acts just like pressing and holding ctrl-alt-4, and releasing is just like releasing
ctrl-alt-4:
{lpedal}>{-ctrl}{-alt}{-4}{ }{+4}{+ctrl}{+alt}
Fast (normal) and Slow output
Macro playback is normally fast. Slower playback can be created placing “{slow}” just before the macro
commands where you want the playback speed to slow down. Using “{fast}” returns output to the normal fast
rate if {slow} has been used previously in that macro.