Jump to content
WnSoft Forums

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 


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...