ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Turn off Screensaver automatically during Youtube

(1/3) > >>

037:
Dunno if it has been implemented or suggested somewhere already, but I guess it wouldn't hurt to suggest it again.

Currently, we have TrayScreenSaver to manually turn on or off screensaver, but if you really think about it, most of the time we turn off screen saver according to the same logic all the time. For example, it will turn off when we browse Youtube, or when we have a video renderer running. Or for instance, it will turn off only when media player is playing video, but turn timer on when playing audio.

So the idea is, to have a software turning off the screensaver according to a set of rules set by the user. I understand that it is much harder to detect all these circumstances than it sounds, so here is my dissemination:

Example: Turn off Screen Saver on Youtube
Solution:
- Easy Way: Detect if any browsers are open, then see if the window title has the word "Youtube"
- Hard Way: Detect if any Flash ActiveX/plugin is running, and see if the src of the embed has "youtube.com"

This should also work for other video sites.

Example: Turn off Screen Saver when Windows Media Player is playing a video
Solution: This probably need a plugin in WMP to detect what is playing

Thanks! Looking forward to your input. :)

jgpaiva:
I do something similar to this. My computer doesn't lock when i have media play or bsplayer as the active window.

Do you think this should be done as "if windows media player is running" or "if window media player is active window"?

037:
It can be one of the options, and I think detecting if WMP is the active window is a clever way to determine if you're watching videos.  :Thmbsup:

And yeah, this idea is really for people who watches videos :)

jgpaiva:
Ok, i modified Skrommel's Noise to have this work and attached to this post.

Just download and install autohotkey and run the script.

It'll disable the screensaver when the current window has "youtube" on its title, or when windows media player is the active window.

The best way to add it more rules is by editing the code and adding other stuff after the following lines:


--- ---if (WindowClass = WMPlayerApp)
  GoSub, MAKENOISE2

if WindowTitle contains Youtube
  GoSub, MAKENOISE2

Those are the 2 rules it has right now. If you'd like it to make the screensaver not start when opera is the active window, you only needed to add:


--- ---if (WindowClass = OpWindow)
  GoSub, MAKENOISE2

or


--- ---if WindowTitle contains Opera
  GoSub, MAKENOISE2
After the mentioned lines.

To find out the windowclass of some window, use windowspy (which is included with autohotkey) or Winspector.

037:
OH MY GOD!!  :-* Thanks a ton for the script!! I have been waiting for something like this for years. The annoyances of constantly exiting full screen mode will finally be gone.  :D

Upon further research, I noticed that most video sites use Flash anyway, and the Window Class of all fullscreen-ed Flash window is the same, so that I can do:


--- ---if (WindowClass = ShockwaveFlashFullScreen)
  GoSub, MAKENOISE2

And as for WMP, I like to turn off Screen Saver only when full screen as well, and it has a different class:

--- ---if (WindowClass = WMPTransition)
  GoSub, MAKENOISE2

Thanks so much for the help again!  :Thmbsup:

Navigation

[0] Message Index

[#] Next page

Go to full version