Script to swap screen layout from 1 to 2 | Left to right .

relaxo
relaxo used Ask the Experts™
on
Hi All,
I want to make a script to run to swap screens 1 to 2 or 2 to 1 from left to right.
I have staff swapping desks or setting up meetings and have to go into display settings and drag 1 identified screen to 2 identified as the mouse gets caught and can't move to the other side logically.
I have wanted to do this for a while. Hope everyone has a solution and point me in the right direction.

Appreciate your help.

D :)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Systems Analyst
Commented:
You can try DisplaySwitch.exe, I believe it is pretty limited. It accepts, /internal, /external, /clone, or /extend.

You can use something like http://www.nirsoft.net/utils/nircmd.html

http://nircmd.nirsoft.net/setdisplay.html
http://nircmd.nirsoft.net/setprimarydisplay.html
relaxoIT Consultant

Author

Commented:
Hi and thanks for that. I just tried to download the util nircmd and my firewall prompted me there is a virus on that .exe
"You are not permitted to download the file "nircmd.zip" because it is infected with the virus "Riskware/HideExec"."
unless this is just a blanket warning.
Thanks,

R
Jose Gabriel Ortega CastroTop Rated Freelancer on MS Technologies
Awarded 2018
Distinguished Expert 2018

Commented:
you don't need any other software...

The screen are identified as are being connected.

so 2 solutions.
Solution1:
With the computer on disconnect the 2 and then reconnect it.

Solution2
The other solution is right click/Display settings.

I have 2 screens (1 FHD 1920 x1080) and another 4k (3820x2160) so at the right is the 4k and at the middle is the FHD.
you just have to click and drag from the right to the left and that's it.

Check the Mht with internet explorer
It was recorded with PSR (Step recorder) and it should be seen with edge or ie).
Recording_20190131_2025.mht
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Commented:
NirCmd is a well-known application, but because it is very mighty contains code often triggering AV alerts. You can safely ignore that the time (but not in general, of course).
relaxoIT Consultant

Author

Commented:
Thank you all for your input I appreciate your help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial