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 

turn off 1st monitor and not 2nd one

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
kiu



Joined: 18 Dec 2005
Posts: 229
Location: Italy - Galatro(RC)

PostPosted: Sun Oct 08, 2006 4:37 pm    Post subject: turn off 1st monitor and not 2nd one Reply with quote

Does anyone know how to turn off 1st monitor and leave active the second one using software commands?
_________________
____________________
______________________
kiu
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sun Oct 08, 2006 4:46 pm    Post subject: Re: turn off 1st monitor and not 2nd one Reply with quote

kiu wrote:
Does anyone know how to turn off 1st monitor and leave active the second one using software commands?


What does the below do for you? Does it blank both the monitors?

Code:
; Copy - Pasted from AHK Documentation

#o::  ; Win+O hotkey that turns off the monitor.
Sleep 1000  ; Give user a chance to release keys (in case their release would wake up the monitor again).
; Turn Monitor Off:
SendMessage, 0x112, 0xF170, 2,, Program Manager   ; 0x112 is WM_SYSCOMMAND, 0xF170 is SC_MONITORPOWER.
; Note for the above: Use -1 in place of 2 to turn the monitor on.
; Use 1 in place of 2 to activate the monitor's low-power mode.
return


Regards, Smile

PS: Nice to hear from you after a long break .. Very Happy
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Sun Oct 08, 2006 4:46 pm    Post subject: Reply with quote

Edit :
See next post


Last edited by slomz on Sun Oct 08, 2006 4:47 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Sun Oct 08, 2006 4:46 pm    Post subject: Reply with quote

Code:
SysGet, Manitor, MonitorPrimary
if Manitor = 1
Shutdown, 1
Back to top
View user's profile Send private message AIM Address
kiu



Joined: 18 Dec 2005
Posts: 229
Location: Italy - Galatro(RC)

PostPosted: Sun Oct 08, 2006 5:03 pm    Post subject: Reply with quote

thanks for replies, but all two don't work:
the first solution turn off all monitors and moving something wake up all my two monitor.

second solutino is for shutting down the pc, that is not my pupose

do you know some other solution?

PS: thanks Goyyah, now i'm studying and working, so I've not much free time, but also if i'm not writing in the forum, i see all post "almost" every day
_________________
____________________
______________________
kiu
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sun Oct 08, 2006 5:30 pm    Post subject: Reply with quote

Dear kiu, Smile

kiu wrote:
the first solution turn off all monitors and moving something wake up all my two monitor.


That was not a solution.. I wanted to confirm it before I could google for possible Windows API solutions. It looks to me that it is less possible ( if not impossible ).

Give me sometime .. I will post again!

Regards, Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
sticker
Guest





PostPosted: Wed Dec 26, 2007 8:41 am    Post subject: Reply with quote

bumper
Back to top
Ace_NoOne



Joined: 10 Oct 2005
Posts: 333
Location: Germany

PostPosted: Wed Dec 26, 2007 9:42 am    Post subject: Reply with quote

I happen to be also very much interested in this; turning off only one monitor (either primary or secondary, or even a possible third one) at the press of a button.

I've done some research on this issue, but could only come up with a few clues, no real solutions:
http://www.xtremevbtalk.com/showthread.php?t=262334

One caveat: When using Windows' regular power-saving mode to turn off a monitor, any mouse or keyboard activity would make it turn on again.
This means that I couldn't control, say, the video player on the secondary screen while keeping the primary disabled.

I've looked into WIZMO and MonOff, but those seem to turn off all monitors.
There's also UltraMon, but that can only turn off the secondary monitor(s) - so the primary is always on, also when watching videos on the secondary.
_________________
Improving my world, one script at a time.
Join the AutoHotkey IRC channel: irc.freenode.net #autohotkey
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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