Jump to content
WnSoft Forums
tom95521

add command line option to clone (mirror) display

Recommended Posts

Most graphics cards now can support multiple inexpensive displays. We have -display 1 and -display 2 command line options. It would be nice to have a -display clone or display -mirror option. It can be done with a script but it would be easier if the application controlled the displays. I don't know if you can determine the existing display configuration and restore it after running the slideshow.

Set WshShell = CreateObject("WScript.Shell" ) 
WshShell.Run "%windir%\System32\DisplaySwitch.exe /clone", 0, TRUE
WScript.Sleep 1000
WshShell.Run "slideshow.exe", 0, TRUE
WshShell.Run "C:\Windows\System32\DisplaySwitch.exe /extend", 0, TRUE
Set WshShell = Nothing 

Thanks,
Tom

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×