PoshCode Archive  File History

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of slideshow-nomonitorsleep.ps1

2018-06-10
14:05
This will display a slideshow and prevent the monitor from sleeping (which may be useful for other purposes). Change the $folder variable to where pictures are located, and change $wait to the time between picture changes. You can move it to another monitor using windows hotkeys (win+shift+arrow). The SetThreadExecutionState p/invoke function with a parameter of (2) causes the display sleep timer to reset, so must be called in a loop to keep the screen active. file: [158b597381] check-in: [07d7c12008] user: james gentile branch: trunk, size: 4096
14:05
This will display a slideshow and prevent the monitor from sleeping (which may be useful for other purposes). Change the $folder variable to where pictures are located, and change $wait to the time between picture changes. You can move it to another monitor using windows hotkeys (win+shift+arrow). The SetThreadExecutionState p/invoke function with a parameter of (2) causes the display sleep timer to reset, so must be called in a loop to keep the screen active. file: [153ddb6295] check-in: [ea49468731] user: james gentile branch: trunk, size: 4060 Added