Two computers, one monitor? Fast switching directly in Windows.
Switching between monitor inputs is usually done via buttons on the monitor and/or the on-screen menu. In this article we will look at how we can switch the input using software.
ControlMyMonitor by NirSoft
For this purpose, we use the software “ControlMyMonitor” by NirSoft. The software is portable, so it does not need to be installed.
After starting the software, we are shown numerous values, codes and labels. If several monitors are connected, the monitor can be specified via the selection field.
Specifically, we are interested in the value for “Input Select” with the VCP code “60”.
For example, we see the current value here. We can remember this value for the currently selected input. By right-clicking we can set a new value (Set New Value).
Here we enter the value for the desired input. We can find this out quite easily by starting the software on the target computer with the desired input and noting the value.
Click on “OK” to accept the value and switch over.
Switching with batch file
OK, so we don’t have to fiddle with the monitor directly, but for a quick changeover we will now create a batch file.
First we copy the monitor name via the “Edit” menu.
The value we need from this is the “Monitor Device Name”.
Then we create a batch file with the editor of our choice. Here we set the value “60” to the desired value.
ControlMyMonitor.exe /SetValue "\.\DISPLAY2\Monitor0" 60 15
After we have saved the file, we can double-click on it to set the input of the monitor.
hot make the code work for two monitors at the same time so I don’t have to make two .bat files
can you please help?
Hi, I think this could easily be done by adding a line or lines for each monitor to the batch file:
ControlMyMonitor.exe /SetValue “\.\DISPLAY2\Monitor0” 60 15
ControlMyMonitor.exe /SetValue “\.\DISPLAY1\Monitor0” 60 15