PoshCode Archive  Hex Artifact Content

Artifact 153ddb629547f70d8a47609018538f6e999dd932a9a3d0ba3583651b904025e0:

  • File slideshow-nomonitorsleep.ps1 — part of check-in [ea49468731] at 2018-06-10 14:05:15 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: 4060)

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