| View previous topic :: View next topic |
| Author |
Message |
kiu
Joined: 18 Dec 2005 Posts: 229 Location: Italy - Galatro(RC)
|
Posted: Sun Oct 08, 2006 4:37 pm Post subject: turn off 1st monitor and not 2nd one |
|
|
Does anyone know how to turn off 1st monitor and leave active the second one using software commands? _________________ ____________________
______________________
kiu |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Sun Oct 08, 2006 4:46 pm Post subject: Re: turn off 1st monitor and not 2nd one |
|
|
| 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,
PS: Nice to hear from you after a long break ..  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 608 Location: Iowa, U.S.
|
Posted: Sun Oct 08, 2006 4:46 pm Post subject: |
|
|
Edit :
See next post
Last edited by slomz on Sun Oct 08, 2006 4:47 pm; edited 1 time in total |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 608 Location: Iowa, U.S.
|
Posted: Sun Oct 08, 2006 4:46 pm Post subject: |
|
|
| Code: | SysGet, Manitor, MonitorPrimary
if Manitor = 1
Shutdown, 1
|
|
|
| Back to top |
|
 |
kiu
Joined: 18 Dec 2005 Posts: 229 Location: Italy - Galatro(RC)
|
Posted: Sun Oct 08, 2006 5:03 pm Post subject: |
|
|
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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Sun Oct 08, 2006 5:30 pm Post subject: |
|
|
Dear kiu,
| 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,  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
sticker Guest
|
Posted: Wed Dec 26, 2007 8:41 am Post subject: |
|
|
| bumper |
|
| Back to top |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 333 Location: Germany
|
Posted: Wed Dec 26, 2007 9:42 am Post subject: |
|
|
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 |
|
 |
|