2012-04-11, 19:57
I do not have dual displays so it will be hard for me to write you a script that will works on your system at 100%. The .bat script could be like this one :
On the first line you select your second display as the active one. Then you start fusion (2nd line). Finally when Fusion is closed, you return back to the first display (where is runnig XBMC). Name this script launcher-fusion.bat. Save it into Fusion directory and select it, instead on Fusion.exe into the corresponding files launcher advanced options.
Concerning your audio switch you could try the Quick Sound Switch application. It seems to be free and support command line. If it do the job, your script could become like this :
Quote:dccmd.exe -monitor="NAME OF YOUR 2nd DISPLAY" -width=1024 -height=768
C:\Program Files\Fusion\Fusion.exe %1
dccmd.exe -monitor="NAME OF YOUR 1st DISPLAY" -width=1024 -height=768
On the first line you select your second display as the active one. Then you start fusion (2nd line). Finally when Fusion is closed, you return back to the first display (where is runnig XBMC). Name this script launcher-fusion.bat. Save it into Fusion directory and select it, instead on Fusion.exe into the corresponding files launcher advanced options.
Concerning your audio switch you could try the Quick Sound Switch application. It seems to be free and support command line. If it do the job, your script could become like this :
Quote:dccmd.exe -monitor="NAME OF YOUR 2nd DISPLAY" -width=1024 -height=768
QuickSoundSwitch.exe D=SOUND DEVICE 2
C:\Program Files\Fusion\Fusion.exe %1
dccmd.exe -monitor="NAME OF YOUR 1st DISPLAY" -width=1024 -height=768
QuickSoundSwitch.exe D=SOUND DEVICE 1