Set Screen Resolution
Verb: setScreenResolution
Available from: <Standard>
Sets the resolution of the selected screen using as parameters the width, height and bits per pixel measurements.
Syntax
setScreenResolution --displayindex(Numeric) --width(Numeric) --height(Numeric) --bpp(BitsPerPixel) (Boolean)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--displayindex | Display Index | Required | Number | Number indicating which of the screens connected to the machine should have the resolution set.
Counting starts from number 1. |
--width | Width | Required | Number | Width in pixels. |
--height | Height | Required | Number | Height in pixels. |
--bpp | Bpp | Required | BitsPerPixel | Option that defines the depth of color or bits per pixel. Options:
|
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | Success | Boolean | Returns "True" if the screen resolution was set successfully or "False" otherwise. |
Example
The command sets the resolution of index screen 1 to 1024x768.
defVar --name success --type Boolean
// Sets the screen resolution.
setScreenResolution --displayindex 1 --width 1024 --height 768 --bpp "High" success=value
logMessage --message "${success}" --type "Info"
// Displays in the IBM Robotic Process Automation Studio console if the resolution was set successfully.