MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » MyTV - Engine 0.2 » Tips and Tricks


Tips and Tricks Post your Tips and Tricks in here.

Reply
 
Thread Tools Display Modes
Old 2005-10-01, 09:29   #1 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts


Default Batch file commands to switch TV to be primary display

Hi,
I've read around on these forums alot (including searching ALOT) and found that dual displays are not supported in MP. So, I thought of a way to get around it until the feature is added. I'd have a batch file called MP.bat that would do the following (in order):

Code:
1. Set display #2 as the primary display
2. Execute Media Portal
3. Set display #1 as the primary display
If this is executed in a batch file, display 2 will become primary, then MP will get launched. When MP is exited, display 1 will become primary, essentially reverting the system back to its default configuration.

The reason I'm posting this here is I need to know how to execute steps 1 and 3 in a Windows batch file (i.e. MP.bat). Does anyone know how?
elg2001 is offline   Reply With Quote
Old 2005-10-02, 00:49   #2 (permalink)
Portal User
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


Default

you can use a utility called VidRes to do this. you can VidRes at

http://www.jddesign.f2s.com/vidres.htm

then put the following in your batch file

"C:\Program Files\JD Design\VidRes\Vidres.exe" /P /M1
start mediaportal
"C:\Program Files\JD Design\VidRes\Vidres.exe" /P /M0
araghava is offline   Reply With Quote
Old 2005-10-05, 08:31   #3 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts


Default

wow thanks! ill give that a shot.

however, is it possible to do it directly perhaps via the driver dll with some flags added? like

Code:
rundll32 %SystemRoot%\System32\nv4_disp.dll /P /D1
or something like that? that would be ideal because then i could use it without it depending upon any 3rd party program.
elg2001 is offline   Reply With Quote
Old 2005-10-05, 22:28   #4 (permalink)
Portal User
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


Default

no idea. VidRes is what i've been using. You can also try ultramon. it's far more powerfull but you'll need to pay for the software.

www.ultramon.com
araghava is offline   Reply With Quote
Old 2006-03-24, 23:02   #5 (permalink)
Portal Member
 
Join Date: Feb 2006
Location: Fremont, CA USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via AIM to foobart
Default

an all-in-one tool to do a lot of things like this from the command line is nircmd.

http://www.nirsoft.net/utils/nircmd.html

I use this to switch resolutions from my remote, and a bunch of other things. Very useful..
__________________
Samsung HLP5063W
Infocus 4805 (ceil mount) + Dalite Hipower 92 inch
Comcast 6412 HD-DVR
HTPC - Sempron 3000+ , 1.5TB , Gefore6200 , SPDIF over Coax
HIP remote control + MediaPortal
Audio: Carver 5.1 + Yamaha RXV595
foobart is offline   Reply With Quote
Reply

Bookmarks

Tags
batch, commands, display, primary, switch

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MP & XBMC intergration scripts v0.6d Update 4-MAR-07 thechad Plugins 179 2008-03-18 04:47
TV recording question/problem 'Arry Installation, configuration support 9 2006-09-22 14:14
Recording from TV 'Arry General Support 2 2006-09-20 01:12
Cant get MyTV to work (2.0 RC3)? mdolan General Support 3 2006-03-30 15:58
After first time entering .apefolder all files is unknown. PHN2 The old Bugreport Forum 1 2006-03-15 17:28


All times are GMT +1. The time now is 18:56.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden