2012-06-12, 12:44
(2012-06-12, 09:23)goldsac Wrote: [ -> ]Ok, I've tried this on my own enough to realize I'm not going to be able to solve my issue myself, so I've come to you all for help.I this case I think the best way is to create small .bat or autoit scripts that will be started instead of the emulator. These script will change the active display before starting the emulator or force the emulator to start on a specific display. For this it exist a small application under windows that work with command line : Display Changer
The issue: I'm running XBMC Eden in Win7 64, with a dual display setup such that my HDTV is a secondary monitor. I want to set up Advanced Launcher (AL) to work with my many emulators on my TV. For emulators that include a display toggle (primary vs secondary), this is not a problem at all. There are others, though, that insist on latching onto the primary display (ie my monitor) exclusively for fullscreen mode (e.g., Kega Fusion, though there are others).
To get around this, I've been trying to set up an Ultramon shortcut that ought to trigger my display settings to switch, such that my HDTV becomes primary (and auto-switches back upon closing the emu program). This is not working with AL though. I can confirm that the Ultramon shortcut(s) I've created work properly when launched via Windows Explorer - but if I set the same shortcut as the application pathway in AL, it ignores the shortcut and just launches the emu as it always has: on my regular monitor. My Ultramon shortcut is being ignored completely, as the HDTV doesn't adopt primary monitor status upon launch from AL.
I can't really find any loose ends with what I'm trying, but maybe someone here can shed some light on this for me. I feel like I'm *this* close to getting this to work out, and it's driving me nuts. I'm also open to suggestions for alternate approaches. From what I've read, it seems as though a batch file might be able to help in this situation. I understand completely what a batch file is, but, unfortunately haven't a clue as to how to go about creating one from scratch (even modifying one can be a challenge, though I'm up to it if I can get a kick-start). It'd be cool someone here has either run into this exact situation, or some variation, and has a solution ready-made - that said, I'll take whatever help I can get!
For example the command line :
Code:
dccmd.exe -monitor="\\.\DISPLAY1" -width=1024 -height=768
Will specify to operate on the first monitor with a screen resolution of 1024x768px. So you could create small launchers like this one :
Code:
dccmd.exe -monitor="\\.\DISPLAY2" -width=1024 -height=768
C:\Program Files\snes9x\snes9x.exe -fullscreen "$1"
dccmd.exe -monitor="\\.\DISPLAY1" -width=1024 -height=768
This script, for example, will start Snes9X on second monitor. When Snes9X will be closed focus will be forced to first monitor (where XBMC may be running). You will surely need to adapt this script to work on your system (modify display name or resolution), but the idea is here. You will found more example on Display Changer web page.