Clipboard actions in Desktop flow using Microsoft Power Automate

Microsoft Power Automate is a software by Microsoft for the automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. More Details https://powerautomate.microsoft.com/en-us/

Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate of all repetitive desktop processes.

Clipboard actions to manipulate or extract the contents of your machine's clipboard. To change the text of the clipboard, use the Set clipboard text action. To retrieve the contents of the clipboard and store them in a variable, use the Get clipboard text action. To clear the clipboard, use the Clear clipboard contents action.

Reading this article, you can learn how to manipulate or extract the contents of your machine's clipboard using Clipboard actions with the Desktop flow in Microsoft Power Automate.

The following important tools are required for developing Microsoft Power Automate,

  1. Windows 10/11 (Recommended)
  2. Power Automate Desktop - Download the Power Automate installer

Now we can discuss step-by-step App development.

Step 1. Open Microsoft Power Automate ->  New Flow

Next, Give the Flow name as PADClipboard, Click the Create button,

Desktop flow using Microsoft Power Automate

After that, we can see the Desktop flow,

Desktop flow using Microsoft Power Automate

Step 2. For Testing Clipboard actions,

First, Set the clipboard text, Add the Set clipboard text action, Set the ClipboardText parameter as "Welcome to C# Corner" and Click the Save Button.

Desktop flow using Microsoft Power Automate

Getting the clipboard text, Add the Get clipboard text action and variable produced as ClipboardText and Click the Save Button.

Desktop flow using Microsoft Power Automate

For Displaying the clipboard text, Add the Display message action, Set the Message box title Parameter value as "Dispclipboard", Message to display Parameter value as %ClipboardText% and Click Save Button.

Desktop flow using Microsoft Power Automate

Clearing the clipboard text, Add the Clear clipboard contents action and Click the Save Button.

Desktop flow using Microsoft Power Automate

Getting the clipboard text, Add the Get clipboard text action and variable produced as ClipboardText and Click the Save Button.

Desktop flow using Microsoft Power Automate

For Displaying the clipboard text, Add the Display message action, Set the Message box title Parameter value as "Dispclipboard", Message to display Parameter value as %ClipboardText% and Click Save Button.

Desktop flow using Microsoft Power Automate

Now, Save the PADClipboard Desktop Flow,

Desktop flow using Microsoft Power Automate

Step 3. Now we can run your PADClipboard Desktop Flow in Microsoft Power Automate, 

The output of the PADClipboard,

Desktop flow using Microsoft Power Automate

After Clearing the Clipboard,

Desktop flow using Microsoft Power Automate

Summary

You have successfully tested the Clipboard action in Desktop flow – PADClipboard in Microsoft Power Automate


Similar Articles