How to install macros

From LabRPS Documentation
Jump to navigation Jump to search
Labrps.svg Tutorial
Topic
Programming
Level
Medium programmer
Time to complete
5 minutes
Authors
Not provided
LabRPS version
0.1.0
Example files
None
See also
None

Description

It is easy to add macros by using the Addon Manager. A regular user doesn't need to do more than use this tool. Keep reading for more information regarding installation of macros.

Macros are sequences of commands which are used to perform a complex drawing operation. Macros are Python scripts, which means they are text files that can be written and edited with a text editor.

While Python scripts normally have the .py extension, LabRPS macros should have the .RPSMacro extension. A collection of macros written by experienced users is found in the macros recipes page.

See Introduction to Python to learn about the Python programming language, and then Python scripting tutorial and LabRPS Scripting Basics to learn about writing macros.

The Macro menu and toolbar

Toolbar

  • Std DlgMacroExecute.svg Macros...: Opens a dialog box to manage and execute macros.
  • Std DlgMacroExecuteDirect.svg Execute macro: Executes the macro currently in the Python editor.

Menu

Besides the tools in the toolbar, the following functions are also available in the Macro menu.

  • Std MacroStartDebug.svg Debug macro: Starts a debugging session for the macro in the Python editor.