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 : sleep on click, wakeup with Esc  (Read 5,559 times)

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
IDEA : sleep on click, wakeup with Esc
« on: November 18, 2009, 11:56 AM »
I've tried looking through the forum with search for "sleep" but there are really too many references !

What I'd like : to put my PC to sleep with a click on a gui button and then be able to wake it up with the Esc key and ONLY with the Esc key.

Why ? : because with other progs you wake up the PC by moving the mouse -
this is no good for me because either my companion inadvertently moves the mouse when she's on the phone or whatever, or it's the cat that jumps up on the desk and moves the mouse !!!  ;D

Anyone like to have a try please ?

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: IDEA : sleep on click, wakeup with Esc
« Reply #1 on: November 18, 2009, 04:11 PM »
It's OK - I've done it meself... except that I can't stop the mouse action waking it up ...???

I can't find a AHK routine which avoids that call - any help please ?
« Last Edit: November 18, 2009, 06:18 PM by joiwind »

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: IDEA : sleep on click, wakeup with Esc
« Reply #2 on: November 18, 2009, 11:31 PM »
have you looked at 'BlockInput'?
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: IDEA : sleep on click, wakeup with Esc
« Reply #3 on: November 19, 2009, 05:29 PM »
Thanks Target - I'll give that a go (hadn't seen that routine).

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