Display Activities

Bronze Certified

Custom Activity

0 reviews

578

Display Activities

Bronze Certified

Custom Activity

0 reviews

578


Summary

A package containing activities for interfacing with the display devices, monitors and their respective display modes (resolution, frequency, etc.)

carouselImage0

Overview

What
When you need to retrieve information pertaining to the display devices on the computers running a workflow, or set specific characteristics of the device like it being the main display (primary monitor) or set a particular display mode (resolution + frequency). The activities interface with the display devices through the Windows API.

Who
RPA developers can use it to run display dependent scenarios.

How
The activities are available under the UIPathTeam > Display node.
  • The Get Display Devices activity lets you retrieve all of the devices, filter them by avaialability or any other traits you need, include monitor information and output a list of devices.
  • The Get Specific Display Device allows you to retrieve a device by name. Alternatively, if you leave the DeviceName field empty, the main (primary) device information is retrieved.
  • The Set Primary Device lets you change the main (primary) device to a device you name.
  • The Get Display Modes activity lets you retrieve all of the display modes supported by the named device. Alternatively, if you leave the DeviceName field empty, the main (primary) device supported modes are retrieved.
  • The Get Current Display Mode allows you to retrieve the current display mode of a named device. Alternatively, if you leave the DeviceName field empty, the main (primary) device's current mode is retrieved.
  • The Set Display Mode lets you change the display mode of a device you name, either by specifying a DisplayMode object or by specifying a Width and Height combo (should there be more than one display mode with the specified width and height, the ones with the highest color depth are chosen, and of these, the one with the highest frequency is chosen).
You can read up more on the Windows API functions for enumerating devices, enumerating display modes and changing the display settings.

Icons made by Freepik from www.flaticon.com

Benefits


Published: 04 Jun 2020 | Updated: 18 Dec 2020


License

By clicking download you agree to the following license.


Code Language

Visual Basic


Runtime

.NET Framework


Tags

change resolution
display
display device
display mode
monitor
monitor resolution
primary monitor
resolution

Compatibility

UiPath Studio 2019.4+


Dependencies

None


Similar Listings