Count Monitors
Verb: countScreens
Available from: <Standard>
Counts how many monitors are connected to the machine where the script is running.
Syntax
countScreens (Numeric)=value
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | Count | Number | Returns the number of monitors connected to the machine. |
Example
Displays in the IBM RPA Studio console how many monitors are connected to the machine where the script runs.
defVar --name numberOfMonitors --type Numeric
countScreens numberOfMonitors=value
logMessage --message "${numberOfMonitors}" --type "Info"