How to install macros: Difference between revisions

From LabRPS Documentation
Jump to navigation Jump to search
(Created page with "{{TutorialInfo |Topic=Programming |Level=Medium programmer |Time=5 minutes |RPSVersion=0.1.0 }} ==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...")
 
 
Line 19: Line 19:


===Toolbar===  
===Toolbar===  
* [[File:Std_DlgMacroRecord.svg|32px]] [[Std_DlgMacroRecord|Macro recording...]]: Opens a dialog box to start a macro recording session.
* [[File:Std_MacroStopRecord.svg|32px]] [[Std_MacroStopRecord|Stop macro recording]]: Stops a macro recording session.


* [[File:Std_DlgMacroExecute.svg|32px]] [[Std_DlgMacroExecute|Macros...]]: Opens a dialog box to manage and execute macros.
* [[File:Std_DlgMacroExecute.svg|32px]] [[Std_DlgMacroExecute|Macros...]]: Opens a dialog box to manage and execute macros.


* [[File:Std_DlgMacroExecuteDirect.svg|32px]] [[Std_DlgMacroExecuteDirect|Execute macro]]: Executes the macro currently in the Python editor.
* [[File:Std_MacroStartDebug.svg|32px]] [[Std_DlgMacroExecuteDirect|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 {{MenuCommand|Macro}} menu.
* [[Std_MacroAttachDebugger|Attach to remote debugger...]]: Attaches LabRPS to a remote debugger.
 
* [[File:Std_MacroStartDebug.svg|32px]] [[Std_MacroStartDebug|Debug macro]]: Starts a debugging session for the macro in the Python editor.
 
* [[File:Std_MacroStopDebug.svg|32px]] [[Std_MacroStopDebug|Stop debugging]]: Stops a debugging session.
 
* [[Std_MacroStepOver|Step over]]: Steps over code.
 
* [[Std_MacroStepInto|Step into]]: Steps into code.


* [[Std_ToggleBreakpoint|Toggle breakpoint]]: Toggles a breakpoint.


{{Powerdocnavi}}
{{Powerdocnavi}}
[[Category:Developer Documentation]]
[[Category:Developer Documentation]]
[[Category:Python Code]]
[[Category:Python Code]]

Latest revision as of 06:06, 8 January 2025

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 MacroStartDebug.svg Execute macro: Executes the macro currently in the Python editor.