Hello, I am running a program, and I am trying to get the screen to extend to my second display after said program closes. I have been successful in getting the opposite to happen, take the screen from the second monitor to only my primary when the program starts, but I want to reverse it when the program is finished. Here is what I am working with so far. It changes to internal, but does not reverse back to extend.
@echo off
DisplaySwitch.exe /internal
/Wait DisplaySwitch.exe /extend
Start "" "A:\Steam\steamapps\common\FSX\fsx.exe"
Start "" "C:\Users\hamha\Desktop\FSISERVER - Shortcut"
Start "" "C:\Users\hamha\Documents\aismv120\AISmooth.exe"
Taskkill "" FSISERVER.EXE
Taskkill "" AISmooth.exe
I guess I should mention that I want the display to extend after the closure of fsx.exe.
@echo off
DisplaySwitch.exe /internal
/Wait DisplaySwitch.exe /extend
Start "" "A:\Steam\steamapps\common\FSX\fsx.exe"
Start "" "C:\Users\hamha\Desktop\FSISERVER - Shortcut"
Start "" "C:\Users\hamha\Documents\aismv120\AISmooth.exe"
Taskkill "" FSISERVER.EXE
Taskkill "" AISmooth.exe
I guess I should mention that I want the display to extend after the closure of fsx.exe.