User`s guide

MPLAB
®
IDE
USERS GUIDE
© 2006 Microchip Technology Inc. DS51519B-page 101
Chapter 9. MPLAB Macros
9.1 INTRODUCTION
MPLAB IDE supports the creation of macros, or the recording and playback of key-
board and/or mouse operations. Once a macro has been created, it may be saved to
a file for future use.
Using Macros
Macro Menu and Toolbar
Macros Dialog
9.2 USING MACROS
To enable macros, select Tools>MPLAB Macros. A Macro menu and toolbar will appear
on the desktop (see Section 9.3 “Macro Menu and Toolbar”).
To disable macros, select Macros>Exit Macros
.
By default, macros record only keyboard keystrokes. To record both keystrokes and
mouse movements:
•Select Macros>Macro Options
to open the Macros dialog (see
Section 9.4 “Macros Dialog”).
On the Options tab, check “Record Mouse actions” under “Recording”.
Uncheck “Full Speed” under “Playback”
•Click Apply to apply the changes or OK to apply the changes and close the
dialog.
To begin recording a macro, select Macros>Record Macro
or click the Record Macro
toolbar button.
To end recording a macro, select Macros>Stop Recording
, click the Stop Recording
toolbar button or hit <Ctrl> + <Break>.
To play back a macro, select Macros>Play Macro
or click the Play Macro toolbar button.
To cancel either recording or playback, hit <Ctrl> + <Esc>.
To save a macro to a file, select Macros>Save Macro
or click the Save Macro toolbar
button.
To open an existing macro file, select Macros>Open Macro
or click the Open Macro
toolbar button.