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
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
kiu



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

PostPosted: Sun Oct 08, 2006 3: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 - www.romeosa.com
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Sun Oct 08, 2006 3: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
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
slomz



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

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

Edit :
See next post


Last edited by slomz on Sun Oct 08, 2006 3: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: 601
Location: Iowa, U.S.

PostPosted: Sun Oct 08, 2006 3: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: 234
Location: Italy - Galatro(RC)

PostPosted: Sun Oct 08, 2006 4: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 - www.romeosa.com
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Sun Oct 08, 2006 4: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
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
sticker
Guest





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

bumper
Back to top
Ace_NoOne



Joined: 10 Oct 2005
Posts: 299
Location: Germany

PostPosted: Wed Dec 26, 2007 8: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
Gauss



Joined: 10 Sep 2009
Posts: 203

PostPosted: Sun Nov 01, 2009 11:55 pm    Post subject: Reply with quote

Anyone else came up with a solution for this old post?
Back to top
View user's profile Send private message
Scratch



Joined: 22 Jan 2009
Posts: 72

PostPosted: Mon Nov 02, 2009 2:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Scratch



Joined: 22 Jan 2009
Posts: 72

PostPosted: Mon Nov 02, 2009 2:11 am    Post subject: Reply with quote

double postr

Last edited by Scratch on Mon Nov 02, 2009 11:27 am; edited 1 time in total
Back to top
View user's profile Send private message
Gauss



Joined: 10 Sep 2009
Posts: 203

PostPosted: Mon Nov 02, 2009 11:23 am    Post subject: Reply with quote

Scratch:
Thats for switching displays.
What I want is to send 1 monitor to sleep and keep the second one working.
Back to top
View user's profile Send private message
homemadev
Guest





PostPosted: Thu Feb 18, 2010 7:26 am    Post subject: Reply with quote

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





PostPosted: Thu Feb 18, 2010 7:33 am    Post subject: Reply with quote

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

PostPosted: Fri Feb 19, 2010 8:35 pm    Post subject: Reply with quote

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
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
Goto page 1, 2  Next
Page 1 of 2

 
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