AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trying to put monitor into standby whats wrong with this?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Chicken Pie 4 Tea



Joined: 18 Aug 2009
Posts: 375
Location: holland

PostPosted: Tue Mar 16, 2010 11:24 am    Post subject: trying to put monitor into standby whats wrong with this? Reply with quote

#m::
Sleep, 200
SendMessage,0x112,0xF170,2,,Program Manager
return

;the above does nothing, any ideas?
_________________
"Choose your parents wisely"
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Tue Mar 16, 2010 12:41 pm    Post subject: Reply with quote

What is your windows version?
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Chicken Pie 4 Tea



Joined: 18 Aug 2009
Posts: 375
Location: holland

PostPosted: Tue Mar 16, 2010 12:47 pm    Post subject: Reply with quote

oops sorry, I am using xp sp2 on a acer travelmate laptop
so the code would work on most pc s?
_________________
"Choose your parents wisely"
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Tue Mar 16, 2010 3:19 pm    Post subject: Reply with quote

It works on mine Confused
Can you run that line only
Code:
SendMessage,0x112,0xF170,2,,Program Manager

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
TheGood



Joined: 30 Jul 2007
Posts: 580

PostPosted: Tue Mar 16, 2010 3:21 pm    Post subject: Reply with quote

Try this instead:
Code:
SendMessage, 0x112, 0xF170, 1,, Program Manager
Back to top
View user's profile Send private message Visit poster's website
Chicken Pie 4 Tea



Joined: 18 Aug 2009
Posts: 375
Location: holland

PostPosted: Tue Mar 16, 2010 3:35 pm    Post subject: Reply with quote

Thanks Hotkeyit and TheGood
tried both but still not working, obviously something odd about my system then. I had Diskeeper running so turned that off but still not working - must be something else.
_________________
"Choose your parents wisely"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group