DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: fake timer to activate screensaving  (Read 11,758 times)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
IDEA: fake timer to activate screensaving
« on: February 19, 2008, 10:16 PM »
I can press Ctrl+Shift+S, and the Webshots screensaver will start, no matter what screensaver is default, but almost none of the other screensavers I am using have such a hotkey feature, if any. And I use quite a number of different screensavers, so I am not asking for merely a hotkey to some screensaver. I was thinking that maybe someone can write a little something that will fake Windows' timer into thinking that the time is up - so when I press this (new) hotkey Windows will think that X (seven) minutes have passed without actions, and start the screensaver. Can this be done?
:tellme:

Edited:
I believe that fifteen years ago this feature was standard on Windows, hence the button "Pause".

---

This wallpaper is merely to make up the post (Ornamental2, 1600x1200, 2MB):

[attachthumb=#]
« Last Edit: February 19, 2008, 10:22 PM by Curt »

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: IDEA: fake timer to activate screensaving
« Reply #1 on: February 19, 2008, 10:21 PM »
Nircmd can start the screensaver on demand.
Thus, what's the hotkey you were thinking?

Wouldn't a shortcut on the desktop be better?

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: IDEA: fake timer to activate screensaving
« Reply #2 on: February 19, 2008, 10:29 PM »
Wouldn't a shortcut on the desktop be better?

Yes, of course, but if it is that simple why did'nt anyone tell it to me before? Well, I didn't read the right post, I guess.  :-\

Yes, please, jgpaiva!  :)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: IDEA: fake timer to activate screensaving
« Reply #3 on: February 19, 2008, 10:30 PM »
Wouldn't a shortcut on the desktop be better?

Quick Start area

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: IDEA: fake timer to activate screensaving
« Reply #4 on: February 19, 2008, 10:53 PM »
Just download nircmd, and create a shortcut to it! Then, go to its properties and add "screensaver" (without the quotes) to the target ;)

nite_monkey

  • Member
  • Joined in 2006
  • **
  • Posts: 753
Re: IDEA: fake timer to activate screensaving
« Reply #5 on: February 19, 2008, 11:03 PM »
just put Skrommel's RunScreenSaver in you quick start area RunScreenSaver download location here
[Insert really cool signature here]
« Last Edit: February 19, 2008, 11:04 PM by nite_monkey »

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: IDEA: fake timer to activate screensaving
« Reply #6 on: February 19, 2008, 11:12 PM »
All is good! :-*

Ctrl+Shift+P ("P" for Pause) 

Thanks a lot, jgpaiva!  :Thmbsup:

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: IDEA: fake timer to activate screensaving
« Reply #7 on: February 19, 2008, 11:16 PM »
... Skrommel's RunScreenSaver...

Thanks, nite_monkey. I tried it some time ago, but something was not the way I wanted it to be. I don't remember what.

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: IDEA: fake timer to activate screensaving
« Reply #8 on: February 20, 2008, 12:23 AM »
I'm sorry, i didn't understand. Curt: did nircmd solve your problem?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: IDEA: fake timer to activate screensaving
« Reply #9 on: February 20, 2008, 03:35 AM »
a little late since Curt has settled on nircmd but for the record the following line would start the default screensaver. just put it in any of your AHK scripts.

Code
;Ctrl+Shift+S to activate screensaver
^+s::SendMessage, 0x112, 0xF140, 0,, Program Manager ; 0x112 is WM_SYSCOMMAND -- 0xF140 is SC_SCREENSAVE

Adapted from this thread.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: IDEA: fake timer to activate screensaving
« Reply #10 on: February 20, 2008, 03:58 AM »
You can also find the .scr file responsible for the screensaver, and double-click it. Those files are actually regular .exe files, except that they take some special command-line arguments.
- carpe noctem

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: IDEA: fake timer to activate screensaving
« Reply #11 on: February 20, 2008, 04:14 PM »
You can also find the .scr file responsible for the screensaver, and double-click it. Those files are actually regular .exe files,

Thanks, f0dder. My reason for not using this obvious method is that I very often change my screensaver, and I don't care to try to remember which one is default at any given moment. = Hit the hotkey, and... "Surprise! This is your screensaver today!".

All is good! :-*

Thanks a lot, jgpaiva!  :Thmbsup:
"Ctrl+Shift+P ("P" for Pause)" was just an info.

Original address: https://www.donationcoder.com/forum/index.php?topic=12385.0