AutoHotkey Community

It is currently May 27th, 2012, 2:40 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: September 27th, 2009, 9:35 pm 
Offline

Joined: September 27th, 2009, 9:26 pm
Posts: 4
Hello All,

I have only just downloaded the software and am now trying to learn about it. But, I really only looked it up for one purpose. So, before I invest a lot of time and effort into all this, could one of you experts tell me if what I am after is even possible? I will describe it below.

I have a desktop PC in my office. It is attached to two displays--my monitor and my TV. The TV is in another room. I watch movies and stuff on the TV.

I want to be able to activate a script that will switch between the two rooms. So, if I wanted to watch TV, the script would need to open the graphics settings and make the TV the only display and then open the sound control panel to make SPDIF bypass the default. Then, I would have another script that would make the monitor the only display and switch back to speakers in the sound control panel.

At first, I tried doing this with the recorder. The problem is that the windows are not always in the same place, so the mouse tracking gets hosed up. Also, unless I make it use only one display, things get lost between the two halves of the desktop.

I am running Vista Home Premium. The graphics settings are in the Nvidia control panel and the sound settings are in the sounds control panel.

So, is my goal possible?

[Title edited. Please write descriptive titles for your topics. ~jaco0646]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 9:39 pm 
Offline

Joined: September 27th, 2009, 8:23 pm
Posts: 20
Look into Control Click and Control Send.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 9:42 pm 
YES.

There are several ways to achive your goals, search the forum,
most of it has probably been solved already and is burried somewhere here.


Report this post
Top
  
Reply with quote  
PostPosted: September 27th, 2009, 9:57 pm 
Offline

Joined: September 27th, 2009, 9:26 pm
Posts: 4
Thanks for your replies. I have been working at this. The good news is that i figured out how to write the script to switch between audio devices. There are actually two. One switches to speakers and one switches to SPDIF. Eventually, I will combine these with each of my monitor changing scripts to automatically set everything at once to watch TV or use the computer. I have pasted my audio scripts below in case anyone wants to comment on them.

Now for the bad news. I can't get the Nvidia control panel to work right. Here is what I have so far:

Run, nvcplui.exe
Winwait, Nvidia Control Panel
Sleep,100
Send, !pl
Send, main monitor{Enter}

The problem is that the command to open the Profile menu does not seem to work. It should open the control panel and then send Alt+P to open Profiles and then L to load. But, that doesn't seem to happen. I put in the wait command just in case, but that didn't help. Any ideas?

AUDIO SCRIPTS

Run, control mmsys.cpl sounds
Winwait, Sound
IfWinNotActive, Sound WinActivate, Sound
WinWaitActive, Sound
Send, {Tab}{Tab}{Tab}{Tab}{Down}{Down}{Tab}{Enter}{Tab}{Tab}{Enter}

Run, control mmsys.cpl sounds
Winwait, Sound
IfWinNotActive, Sound WinActivate, Sound
WinWaitActive, Sound
Send, {Tab}{Tab}{Tab}{Tab}{Down}{Tab}{Enter}{Tab}{Tab}{Enter}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 28th, 2009, 3:34 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Maybe using a different method of Send (SendInput, SendPlay, SendEvent...)

EDIT: I sent you a PM.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


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

Joined: November 22nd, 2009, 6:15 pm
Posts: 6
Read my post here:
http://www.autohotkey.com/forum/viewtop ... c&start=45

Haven't figured out the sound issue yet.

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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, Bing [Bot], rbrtryn and 19 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