MacroWin

MacroWin

Not enough ratings
MacroWin | Advanced Macros
By nieuwoudt
Welcome to the ultimate guide on harnessing the full potential of Advanced Macros with Global Variables for MacroWin! In this guide, we will delve into the intricate workings of Advanced Macros, equipping you with the knowledge to unleash MacroWin's true capabilities.
   
Award
Favorite
Favorited
Unfavorite
Global Variables
What is a Global Variable?
A Global Variable is a powerful concept in automation that allows you to store and share data across multiple macros, enabling dynamic and adaptive behaviour within your automation processes. These variables act as containers that hold values accessible by various conditions and actions throughout your macros. By leveraging Global Variables, you can create intelligent and responsive automation workflows that produce different results based on the variable's current state.

Where are these Global Variables?
Global Variables exist in your application's memory and can be viewed in the Global Variables Viewer (Tool -> Global Variables):

While Global Variables play a pivotal role in enhancing automation, it's important to note that the Global Variables Viewer primarily serves as a tool for debugging and monitoring purposes. The primary method of creating and removing Global Variables is through the execution of a macro, ensuring proper control and management of these variables.

Advanced Macros
What is an Advanced Macro?
An Advanced Macro extends the capabilities of Macros by incorporating the use of Global Variables within its input fields. Unlike regular macros, which typically accept fixed values or user-defined inputs, Advanced Macros allow you to leverage Global Variables dynamically as inputs.

How can I create an Advanced Macro?
First off, create a new Macro. Locate the checkbox labeled "Advanced" in the bottom left corner of the macro creation form. Make sure it is checked to enable the Advanced Macro functionality:
Assign a hotkey as a trigger (F2 will be used in this example).
Add a Notification action to the Macro.
Next to the text field, click the button with an 'X' symbol.
In the combo box at the top, select the 'General' option.
Double-click on the 'Clipboard' variable.
Adjust the properties of the Notification action to match the following configuration:
Provide a name for the Macro and optionally a description. Save the macro.
Trigger the macro by pressing the assigned hotkey (in this case, F2). Ensure that you have text in your clipboard to see it displayed in the tray notification.

That's it! You have successfully created an Advanced Macro.

General Tips:
  • Once the Advanced checkbox is checked, most Conditions and Actions can make use of Global Variables
  • Global Variables can be created, modified, and deleted using the Global Variable action
  • Temporary Variables, also set within the Global Variable action, function similarly to Global Variables but are limited to the executing macro's memory and lifespan

Conclusion
With these guidelines, you are now equipped to leverage the capabilities of Advanced Macros and Global Variables in your automation projects. Get creative and discover the endless possibilities that await you!