| View previous topic :: View next topic |
| Author |
Message |
kiu
Joined: 18 Dec 2005 Posts: 234 Location: Italy - Galatro(RC)
|
Posted: Sun Oct 08, 2006 3: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 - www.romeosa.com |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Sun Oct 08, 2006 3: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 ..  _________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 601 Location: Iowa, U.S.
|
Posted: Sun Oct 08, 2006 3:46 pm Post subject: |
|
|
Edit :
See next post
Last edited by slomz on Sun Oct 08, 2006 3:47 pm; edited 1 time in total |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 601 Location: Iowa, U.S.
|
Posted: Sun Oct 08, 2006 3:46 pm Post subject: |
|
|
| Code: | SysGet, Manitor, MonitorPrimary
if Manitor = 1
Shutdown, 1
|
|
|
| Back to top |
|
 |
kiu
Joined: 18 Dec 2005 Posts: 234 Location: Italy - Galatro(RC)
|
Posted: Sun Oct 08, 2006 4: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 - www.romeosa.com |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Sun Oct 08, 2006 4: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,  _________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
sticker Guest
|
Posted: Wed Dec 26, 2007 7:41 am Post subject: |
|
|
| bumper |
|
| Back to top |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 299 Location: Germany
|
Posted: Wed Dec 26, 2007 8: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 |
|
 |
Gauss
Joined: 10 Sep 2009 Posts: 203
|
Posted: Sun Nov 01, 2009 11:55 pm Post subject: |
|
|
| Anyone else came up with a solution for this old post? |
|
| Back to top |
|
 |
Scratch
Joined: 22 Jan 2009 Posts: 72
|
Posted: Mon Nov 02, 2009 2:10 am Post subject: |
|
|
in w7 there is a standard hotkey: ^#p
after wich a menubar pops up:
[ Computer Only | Duplicate | Extend| Projector Only ]
Curently running 1 monitor, but who knows:
| Code: | | send ^#p{Left}{Enter} |
Would chose Projector only |
|
| Back to top |
|
 |
Scratch
Joined: 22 Jan 2009 Posts: 72
|
Posted: Mon Nov 02, 2009 2:11 am Post subject: |
|
|
double postr
Last edited by Scratch on Mon Nov 02, 2009 11:27 am; edited 1 time in total |
|
| Back to top |
|
 |
Gauss
Joined: 10 Sep 2009 Posts: 203
|
Posted: Mon Nov 02, 2009 11:23 am Post subject: |
|
|
Scratch:
Thats for switching displays.
What I want is to send 1 monitor to sleep and keep the second one working. |
|
| Back to top |
|
 |
homemadev Guest
|
Posted: Thu Feb 18, 2010 7:26 am Post subject: |
|
|
bump- this is exactly what I want to do.
I'm always watching something on my 2nd monitor and my workaround is a black bitmap that I set to fullscreen. |
|
| Back to top |
|
 |
homemadev Guest
|
Posted: Thu Feb 18, 2010 7:33 am Post subject: |
|
|
Here's another idea for a workaround:
Starting with a primary monitor (laptop monitor) + extension monitor (other nicer monitor): Change the monitor setup to Primary only on the other nicer monitor. This turns off the laptop monitor until it becomes selected as an active monitor again.
Most laptops have a function key for this sort of thing, so the question is-- how does that translate into Autohotkey? |
|
| Back to top |
|
 |
Moebius
Joined: 08 Mar 2009 Posts: 28
|
Posted: Fri Feb 19, 2010 8:35 pm Post subject: |
|
|
| if you have a ATI/AMD card, you can do this in the Catalyst Control Center with "Profiles" and "Hotkeys". I use it since years (2nd monitor is my tv) and it works good. |
|
| Back to top |
|
 |
|