AutoHotkey Community

It is currently May 26th, 2012, 11:01 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: October 8th, 2006, 4:37 pm 
Offline

Joined: December 18th, 2005, 5:40 pm
Posts: 234
Location: Italy - Galatro(RC)
Does anyone know how to turn off 1st monitor and leave active the second one using software commands?

_________________
____________________
______________________
kiu - www.romeosa.com


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 8th, 2006, 4:46 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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 .. :D

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2006, 4:46 pm 
Offline

Joined: September 3rd, 2006, 5:34 am
Posts: 601
Location: Iowa, U.S.
Edit :
See next post


Last edited by slomz on October 8th, 2006, 4:47 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2006, 4:46 pm 
Offline

Joined: September 3rd, 2006, 5:34 am
Posts: 601
Location: Iowa, U.S.
Code:
SysGet, Manitor, MonitorPrimary
if Manitor = 1
Shutdown, 1


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2006, 5:03 pm 
Offline

Joined: December 18th, 2005, 5:40 pm
Posts: 234
Location: Italy - Galatro(RC)
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2006, 5:30 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2007, 8:41 am 
bumper


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2007, 9:42 am 
Offline

Joined: October 10th, 2005, 10:44 am
Posts: 299
Location: Germany
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 2nd, 2009, 12:55 am 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
Anyone else came up with a solution for this old post?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 2nd, 2009, 3:10 am 
Offline

Joined: January 22nd, 2009, 3:43 pm
Posts: 84
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 2nd, 2009, 3:11 am 
Offline

Joined: January 22nd, 2009, 3:43 pm
Posts: 84
double postr


Last edited by Scratch on November 2nd, 2009, 12:27 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 2nd, 2009, 12:23 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
Scratch:
Thats for switching displays.
What I want is to send 1 monitor to sleep and keep the second one working.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 18th, 2010, 8:26 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 18th, 2010, 8:33 am 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2010, 9:35 pm 
Offline

Joined: March 9th, 2009, 12:15 am
Posts: 28
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], hyper_, JSLover, Kirtman, Leef_me, Miguel, XstatyK, Yahoo [Bot] and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group