Visual Basic (Declaration) | |
---|---|
Public MustOverride Sub Run() |
C# | |
---|---|
public abstract void Run() |
C++/CLI | |
---|---|
public: abstract void Run(); |
Macros run on a background thread. This method starts the macro running and returns immediately. The macro will run until it terminates on its own, or the Quit method is called. If the caller needs to know the termination status of the macro, watch for a PropertyChanged notification on the IsRunning property. When IsRunning toggles from true to false, then the TerminationStatus property can be queried to determine why the macro terminated.
Note that it is possible to run multiple macros simultaneously. Each macro runs on its own thread. It is up to the caller to ensure that the macros do not interfere with each other by attempting to perform conflicting actions.
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)