PoshCode Archive  Hex Artifact Content

Artifact 158b59738196cb1e6918a7032de0832976945a0e54cb6749dad7156a2eb684ac:

  • File slideshow-nomonitorsleep.ps1 — part of check-in [07d7c12008] at 2018-06-10 14:05:22 on branch trunk — 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. (user: james gentile size: 4096)

A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.