How to change Windows (7) settings using script

I bought a new TV mainly as a second monitor for my PC, and I often need to change settings (expand the display of films, duplicate the display for games, turn off the work).

Is there a way to switch between these settings through some script (most likely a package or VBS, whatever), so I don’t need to constantly scan the GUI? I'm veeery lazy ... thanks

+7
source share
2 answers

Firstly, not sure if you know the shortcut

Windows + P 

2 buttons seem pretty easy!

but you can write a batch file to run programs with displaywitch.exe turned on. displaywitch comes with windows 7, so you can have a batch file with:

 DisplaySwitch.exe /external notepad.exe 

then use this batch file to open notepad and it will always open and switch only to the external screen.

The following options are available:

 Extend Display DisplaySwitch.exe /extend 2nd monitor DisplaySwitch.exe /external Computers Monitor DisplaySwitch.exe /internal Duplicate Display DisplaySwitch.exe /clone 

Martyn

+26
source

You can make a script with a choice like me:

 @ECHO OFF CLS ECHO 1.Monitor 2 i TV Duplicate ECHO 2.Monitor 2 i Monitor 3 Extended ECHO 3.Monitor 2 i TV Extended ECHO. CHOICE /C 123 /M "Izbor:" IF ERRORLEVEL 3 GOTO Mon2TvExt IF ERRORLEVEL 2 GOTO Mon2Mon3Ext IF ERRORLEVEL 1 GOTO Mon2TvDupl :Mon2TvDupl ECHO 1.Monitor 2 i TV Duplicate Duplicate Display DisplaySwitch.exe /clone GOTO End :Mon2Mon3Ext ECHO 2.Monitor 2 i Monitor 3 Extended DisplaySwitch.exe /external GOTO End :Mon2TvExt ECHO 3.Monitor 2 i TV Extended Extend Display DisplaySwitch.exe /extend GOTO End Pause 

TV is number 1, and two monitors are number 2 and number 3.

+1
source

All Articles