Starting the Macro Wizard

The wizard installs as a Proton plug-in and can be started from the “Plug-Ins” menu in the IDE.  The wizard can be found under Library Tools, Macro Generator.

 

On opening, the wizard will attempt to connect to the Proton IDE.  If successful it will report IDE connected in the status bar beneath the logo.  When connected to the IDE the wizard can generate a list of the variables and labels used in the current active IDE project and can paste the generated code directly into the IDE at the current cursor position.

 

To move between steps click the Next and Back buttons at the bottom of the screen.  You can move back and forward between each step as often as you like however be aware that if you have edited the final code and then go back to an earlier step the code will be regenerated and you will loose your edits.

 

If you don’t wish to see the Introduction screen each time you start the wizard check the “Skip this screen in the future

 

Before starting to generate the macro code you need to have a clear idea of what the macro is going to do, what code it will use to implement the function (normally a basic subroutine) and what arguments are to be accepted and parameters to be returned.

 

For further information on macros see Example Macros.

 

Some information collected will be mandatory others will be optional.  The macro generator will not allow you to proceed to the next step until all the mandatory information is entered for that step.