Screen Resolution in Desktop flow using Microsoft Power Automate

Introduction

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.

The workstation group of actions provides a collection of actions that automate some essential functionalities of your workstation. To get or set the width, height, bit count, and frequency of a selected monitor screen resolution, we can use the Get screen resolution action and Set screen resolution action.

Reading this article, you can learn how to get or set the screen resolution using the Get screen resolution action and Set screen resolution action in a workstation group of actions with Desktop flow using 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 PADScreenresolution, Click the Create button,

Screen Resolution in Desktop flow

After that, we can see the Desktop flow,                                           

Screen Resolution in Desktop flow

Step 2. For Testing, Get the screen resolution action and Set the screen resolution action in the Workstation group of actions,

Add the Get screen resolution action, Set the Monitor number Parameter value as “1” and the following variable produced MonitorWidth, MonitorHeight, MonitorBitCount, MonitorFrequency, and Click the Save Button.

Screen Resolution in Desktop flow

For Displaying the resolution details, Add the Display message action, Set the Message box title Parameter value as  “GetResolutiondisp”, Message to display Parameter value as

The Monitor Resolution is,

  • Width: %MonitorWidth%
  • Height: %MonitorHeight%
  • Frequency: %MonitorFrequency%
  • BitCount: %MonitorBitCount%

and Click the Save Button.

Screen Resolution in Desktop flow

Add the Set screen resolution action, Set Monitor number Parameter value as “1”, MonitorWidth Parameter value as “1024”, MonitorHeight Parameter value as “768”, MonitorBitCount Parameter value as “32”, MonitorFrequency Parameter value as “60” and Click Save Button.

Screen Resolution in Desktop flow

Add the Get screen resolution action, Set the Monitor number Parameter value as “1” and the following variable produced MonitorWidth, MonitorHeight, MonitorBitCount, MonitorFrequency, and Click the Save Button.

Screen Resolution in Desktop flow

For Displaying the resolution details, Add the Display message action, Set the Message box title Parameter value as  “GetResolutiondisp”, and Message to display Parameter value as.

The Monitor Resolution is,

  • Width: %MonitorWidth%
  • Height: %MonitorHeight%
  • Frequency: %MonitorFrequency%
  • BitCount: %MonitorBitCount%

and Click the Save Button.

Screen Resolution in Desktop flow

Now, Save the PADScreenresolution Desktop Flow,

Screen Resolution in Desktop flow

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

The output of the PADScreenresolution,

Screen Resolution in Desktop flow

The Changed Resolution output of the PADScreenresolution,

Screen Resolution in Desktop flow

Summary

Now, you are successfully tested. Get screen resolution action and  Set screen resolution action in Desktop flow – PADScreenresolution in Microsoft Power Automate.


Similar Articles