Idle Monitor (including sound) - 2021/06/21 - beta.1

Post your working scripts, libraries and tools.
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Idle Monitor (including sound) - 2021/06/21 - beta.1

01 May 2021, 11:21

I like to fall asleep watching YouTube or Netflix sometimes. I know Windows can go to sleep automatically, but I've never seen any auto-shutdown based dynamically on user input and sound, so I made this.

With this library, you can define an idle timer that will always take into account sound being played. Any sound played will reset the idle timer.

You can of course disable the sound monitoring as well. You can specify a callback function to capture events for timer ON/OFF, and for each timer CYCLE, and when it's time to EXECUTE.

As usual, i left lots of notes in the lib.

The included example is the auto-shutdown script I use for personal use.

:arrow: Download on GitHub

Return to “Scripts and Functions (v2)”

Who is online

Users browsing this forum: hiahkforum and 16 guests