| View previous topic :: View next topic |
| Author |
Message |
guest101 Guest
|
Posted: Sun Jan 10, 2010 10:55 am Post subject: Turn Monitor Off and keep off until hotkey pressed |
|
|
in ahk you can use this to turn monitor off:
SendMessage 0x112, 0xF170, 1,,Program Manager
but is there any way to keep monitor off until a hotkey is pressed? (as opposed to just any key or mouse movement)
thanks |
|
| Back to top |
|
 |
Peter
Joined: 30 Dec 2005 Posts: 448
|
Posted: Sun Jan 10, 2010 12:29 pm Post subject: |
|
|
It seems not. Windows intercepts the key before AHK does. I tried this code with no success: | Code: | BlockInput, On
SendMessage 0x112, 0xF170, 1,,Program Manager
return | (PS: Ctrl-Alt-Del unblocks it) |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Sun Jan 10, 2010 5:15 pm Post subject: |
|
|
You could loop it so it keeps sending monitor off comands. So if it wakes up it goes right back to sleep.
If not you could use the hotkey on the fornt of your monitor then it stays off untill pressed again.  |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Mon Jan 11, 2010 5:14 am Post subject: |
|
|
| Code: | F1::SetTimer, IdleCheck, 500
F2::SetTimer, IdleCheck, Off
IdleCheck:
If(A_TimeIdle<500)
SendMessage,0x112,0xF170,2,,Program Manager
Return |
Only sends monitor off when needed
F1 monitor Off
F2 monitor On
On my CRT the screen doesen't come completly on before being shut down again. |
|
| Back to top |
|
 |
svi
Joined: 09 Oct 2006 Posts: 236 Location: Finland
|
Posted: Mon Jan 11, 2010 4:49 pm Post subject: |
|
|
None, your script works with Cathode Ray Tubes, because for them it takes time to warm up, so there's no flash when it's turned on for mostly half second.
I have a laptop with CRT, so I can't test it on LCD/TFT, but I think they're too fast to be kept off with a reasonable timer interval. _________________ Pekka Vartto |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Mon Jan 11, 2010 4:58 pm Post subject: |
|
|
| It also stays off on a LCD I have access to. But it occasionally flashes no signal. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
jonj99
Joined: 03 Jan 2009 Posts: 24
|
Posted: Tue Jan 12, 2010 3:05 am Post subject: |
|
|
this was a problem for me too. for me the situation was with a laptop i frequently want to play music while i take a nap and want the screen off. it was too sensitive to not keep 'waking back up' the monitor.
so i ended up just connecting a monitor cable to fool the laptop into thinking there is an external monitor. then just a hotkey to switch the laptop back and forth from normal to external monitor only.
just an idea to consider. |
|
| Back to top |
|
 |
goblinhan Guest
|
Posted: Sun Nov 14, 2010 7:21 pm Post subject: |
|
|
me too, I've the same problem:( I'd like to listen music on my laptop when LCD off. Unfortunately When I want to volume up,down or mute, I have to turn on lcd:\
I have written a message to microsoft forum for uncontrolled wake up problem of windows XP. When The answer is come, I write here. |
|
| Back to top |
|
 |
|