Define a C# Function as an Action in your Project

  1. View Macro Recording in JSON Format:
  • Click the Source View JSON button in the UI.Vision plugin. You will see an output of your recording in JSON format.
  • Take this JSON data and convert the JSON format to string with the JSON.stringify() command.
  1. Include Stringified JSON Data in C# Function:

Inside the C# function you created in your Kuika project, assign the stringified JSON data to a variable. For example:

string macroData = “stringified JSON data will go here”;

  • You can organize this data according to your needs and manipulate the operations within it.
  1. Define a C# Function as an Action in your Project:
  • Add the C# function you wrote as an onclick action of a button. Thus, this function will run when the button is clicked.
  1. Run UI.Vision Macro in Your Project:
  • Call the Run UI Vision Macro function at the end of your function and bind the Action Result of your C# function to the Stringified Macro parameter. This will trigger the macro inside the UI.Vision plugin.

Once you have completed these steps, you can trigger your UI.Vision macro and perform your automated actions by clicking a button from your Kuika project. This structure offers a powerful automation possibility, especially for easily managing repetitive browser operations.