AutoHotkey Community

It is currently May 27th, 2012, 2:57 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: March 17th, 2010, 12:47 pm 
Offline

Joined: March 17th, 2010, 12:46 pm
Posts: 3
Hi,

I'm using this keycommand to turn off my monitors:

^1::
Sleep, 200
SendMessage,0x112,0xF170,2,,Program Manager
return


It works, but only for a few seconds. After a few seconds the monitors are switched on again.

Any ideas why this is?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2010, 2:18 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
If you are not pressing a key or moving mouse then there is an application that possibly does this.

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2010, 3:12 pm 
Offline

Joined: October 9th, 2009, 8:36 pm
Posts: 93
try using a longer sleep,

i have it set at 500

Quote:
F12::

Sleep 500
SendMessage 0x112, 0xF170, 2,,Program Manager

return


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 17th, 2010, 4:04 pm 
Offline

Joined: August 18th, 2009, 12:07 pm
Posts: 375
Location: holland
dirkla wrote:
Hi,

I'm using this keycommand to turn off my monitors:

^1::
Sleep, 200
SendMessage,0x112,0xF170,2,,Program Manager
return


It works, but only for a few seconds. After a few seconds the monitors are switched on again.

Any ideas why this is?

your lucky because your script and the one below do nothing on my computer not even a flicker!

_________________
"Choose your parents wisely"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2010, 9:28 am 
Offline

Joined: March 17th, 2010, 12:46 pm
Posts: 3
Higher values for sleep don't make a difference.
Any idea how to find out which application triggers the pc to turn on the monitors again?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2010, 9:35 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Are you on XP?

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2010, 10:01 am 
Offline

Joined: March 17th, 2010, 12:46 pm
Posts: 3
No, I'm using W7 64 bit.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2010, 10:14 am 
HotKeyIt wrote:
If you are not pressing a key or moving mouse then there is an application that possibly does this.
That is very likely the answer. Why not try starting windows with the absolute minimum programs and see if the monitor will stay off. Then you can start adding programs until you find the culprit


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], rbrtryn and 28 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group