Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Code Run C# Code
💠 Code

Run a C# snippet in RunMacro

What it does

The Run C# Code command inserts and runs a C# snippet. RunMacro prefers dotnet-script/csi, falling back to the .NET Framework csc compiler. Printed output goes to the log.

When to use it

  • Leverage .NET libraries for a special task.
  • Handle complex logic in C#.
  • Integrate a C# computation/formatting snippet.

Configuration steps

  1. Add a Code › Run C# Code command.
  2. Enter your C# snippet.
  3. Use Console.WriteLine(...) to output to the log. Save.

Every option explained

Code content

The C# snippet to run. With only csc (C# 5), some newer syntax like interpolated strings is auto-downgraded.

Real example

Example: print a line

  1. Run C# Code with Console.WriteLine("Hello");.
  2. The line appears in the log.

Tips & common mistakes

You need dotnet-script, csi, or csc.exe available; otherwise the command reports it cannot run.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.