Creating macros - Security Center 5.12

Security Center Administrator Guide 5.12

Product
Security Center
Content type
Guides > Administrator guides
Version
5.12
Language
English
Last updated
2024-11-05

To create a macro that you can run in Security Center, you must write a C# program using an external text editor or the text editor in Config Tool, and then load the program in Security Center.

What you should know

You can save a draft of a macro that is incomplete or has errors so you can return later to work on the unfinished macro.

Procedure

  1. From the Config Tool homepage, open the System task and click the Macros view.
  2. Click Macro, and enter the macro name.
  3. Click the Properties tab, and do one of the following:
    • To import the source code from a file, click Import from file, select the file containing the C# code, and click Open.
    • Write your own code in the text field.
  4. (Optional) Turn on the Draft option to save a draft version of the macro to work on later.
    The Draft toggle on the macro Properties tab in Security Center.
    Macros in draft state cannot be run.
  5. Click Apply.
    NOTE: If your macro is incomplete or has errors and you did not turn on the Draft option, a macro errors window opens. Click Save draft to turn on the draft option here.
  6. (Optional) If the program has input parameters, click the Default execution context tab and configure the settings.
  7. Click Apply.