AutoHotkey Community

It is currently May 26th, 2012, 6:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: so close
PostPosted: February 6th, 2009, 8:37 am 
This is so close to working perfectly, but I'm having the same problem a few others mentioned, which is I can disable my secondary display but cannot enable it. I am using the toggle action (-1), but it only toggles off. I tried both "\\.\DISPLAY2" and 2 for the first argument in EnableDisplayDevice(), but saw no difference. I also tried TheQwerty's suggestion to define the X,Y position using NumPut(), but that didn't work either.

It seems the secondary monitor is not being detected, but it can still be enabled as usual via Display Properties. When the secondary display is ENABLED EnumDisplayDevices.ahk outputs the following:
---------------------------
\\.\DISPLAY1 is the primary display device.
The desktop extends onto \\.\DISPLAY2.
\\.\DISPLAYV1 is a pseudo-device.
\\.\DISPLAYV2 is a pseudo-device.
---------------------------

However, after it has been disabled it shows:
---------------------------
\\.\DISPLAY1 is the primary display device.
\\.\DISPLAYV1 is a pseudo-device.
\\.\DISPLAYV2 is a pseudo-device.
---------------------------

I poked around in the config utility for my notebook's Intel GMA (Graphics Media Accelerator) driver, but could find nothing that seemed to help.
Any solutions out there?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 10:38 am 
Offline

Joined: November 2nd, 2004, 2:43 pm
Posts: 1019
Location: London, UK
are you using the original or updated code posted by myself?

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle


Report this post
Top
 Profile  
Reply with quote  
 Post subject: so close
PostPosted: February 6th, 2009, 6:14 pm 
Superfraggle wrote:
are you using the original or updated code posted by myself?


The updated code, but these tweaks didn't seem to do the trick:
Numput(A_ScreenWidth + 1,Point)
Numput(&point,devmode,44)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 6:52 pm 
Offline

Joined: November 2nd, 2004, 2:43 pm
Posts: 1019
Location: London, UK
I have exactly the same graphics card and it iw working for me. Can I ask what display set up you use.

Extended desktop or clone. and do you have the second monitor on the left or right?

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2009, 3:42 am 
I use extended desktop, 2nd monitor to the right.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2009, 1:26 pm 
Offline

Joined: November 2nd, 2004, 2:43 pm
Posts: 1019
Location: London, UK
Sorry I forgot to ask, are both the monitors on the same resolution or they slightly different?

The code I posted works perfectly on my laptop (intel GMA) with both monitors on the same res.

I haven't had time to play around with this anymore recently. I shall have a look later tonight if I get a chance.

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2009, 1:43 pm 
I just found a solution to this problem, but unfortunately it does not use AHK at all. In the vendor's "graphics properties" dialog I can save different configurations, e.g. for single/multiple display, etc. After these have been saved they simply appear in the option menu when Rt-clicking on the desktop or somewhere.

Thank you for your help though! (the resolutions are different, by the way)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 28th, 2009, 1:53 am 
Hello @ all,

this script works great, when I want to extend my desktop to another monitor. But what do I have to change, if I just want to activate the second monitor and get the "clone mode"?

Thank you for your help!


Report this post
Top
  
Reply with quote  
 Post subject: Clone viewing
PostPosted: June 10th, 2009, 1:35 pm 
Hi There,

Just wondering if anyone has any idea on how to make this work to enable clone view?

Cheers for your help


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2009, 8:27 pm 
I'm brand new to AHK, I found it while searching for a way to make me keyboard buttons work with itunes even when it's not open. Then I searched through the forums and found this script but have no idea how to make it work. Can anyone help me?


Report this post
Top
  
Reply with quote  
PostPosted: November 22nd, 2009, 6:27 pm 
Offline

Joined: November 22nd, 2009, 6:15 pm
Posts: 6
This code makes it easy to switch from your computer monitor to your TV and then back to your computer monitor.

Code:
^F2:: ;Ctrl-F2
{
run displayswitch /external
}
return
^F3:: ;Ctrl-F3
{
run displayswitch /internal
}
return

Open a new text document paste in the above code and save file as TV.ahk (or anything you want instead of TV). Then just double click the file to add to your system tray. To switch to your TV hit Control and F2 Key. This moves everything to your TV. When you want to switch back to your Computer monitor just hit Control and F3 key.

If you want to clone your screens just change "/internal" to read "/clone". To have and extended desk top add switch "/extend"

I wanted a easy hot key to switch from my computer monitor to my TV. They are in different rooms. This does the trick.

_________________
System: Windows 7 64 Bit, 8GB Ram, GTX 260, Raptor Raid


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 10:14 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
socd, how did you come up with the code "/external.."? this is very nice
maybe we can have something like this to switch among audio devices.

Thanks alot for posting this


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 26th, 2009, 12:05 am 
Offline

Joined: November 22nd, 2009, 6:15 pm
Posts: 6
I opened the program DisplaySwitch.exe in notepad and went thru it line by line until I found the commands. Gave it a try and it worked.

_________________
System: Windows 7 64 Bit, 8GB Ram, GTX 260, Raptor Raid


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 26th, 2009, 11:24 pm 
Offline

Joined: November 22nd, 2009, 6:15 pm
Posts: 6
The below code makes it when I hit Control + F4 change between my Digital (surround sound system) out and my analog (computer speakers). I just keep hitting the combination to go back and forth.

I got the code on another thread here.

Code:
^F4:: ;Ctrl-F4
Run, mmsys.cpl
WinWait,Sound
ControlSend,SysListView321,{Down}
ControlGet, isEnabled, Enabled,,&Set Default
if(!isEnabled)
{
   ControlSend,SysListView321,{Down 2}
}
ControlClick,&Set Default
ControlClick,OK
WinWaitClose
SoundPlay, *-1
return


I'm using a Realtek on board audio.

Enjoy :P

_________________
System: Windows 7 64 Bit, 8GB Ram, GTX 260, Raptor Raid


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2009, 10:26 am 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
socd,
Seems to work fine.. Thanks for sharing
Whats the SoundPlay, *-1 for?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], rbrtryn, Retro Gamer, SKAN, Yahoo [Bot] and 52 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