Hi RPA_1,
I haven't done this through BP but have done it manually and is working fine and I believe the same can be achieved through BP as explained below.
I have used the instructions from the below link...
https://github.com/juanitogan/rbxit/wiki/Display-resolution-shortcuts
...to create the below steps.
i. First create a
SetRes.ps1 as per the instructions in the above link
ii. Then created two batch files one with each resolution that I want eg;
1024x768.bat and
1366x768.bat
The content of these .bat files should be only this 1 line depending on what resolution you want in each file (in red color).
PowerShell.exe -NoProfile -ExecutionPolicy Bypass -File "%CD%\SetRes.ps1" 1024 768
iii. Now I have 3 files. All the files need to be in the same folder. Refer attached screenshot
iv. I need not touch the .ps1 file now. I manually first ran the 1024x768.bat by double clicking it. It changed the screen resolution to 1024x768 and then ran the 1366x768 which again changed the resolution to 1366x768
v. The same can be done by running the batch files from BP. Refer below link-
http://www.rpaforum.net/threads/launch-bat-file-from-blue-prism.602/
vi. Before running the above commands through BP you may want to use the 'Get Screen Resolution' action of '
Utility - Environment' and change the resolution only if required.
vii. Also go through the caveats mentioned on this link.
https://github.com/juanitogan/rbxit/wiki/Display-resolution-shortcuts
I assume you are using Windows and Powershell is integrated within Windows, which is similar to, but more powerful than Command Prompt. You can check by typing "powershell" in the Run command and hit enter. This should open the Powershell.