2010-01-29, 10:33
First open Home.xml in \skin\Confluence\720p
Add following code between the closing </item> tag and before the <item id=”6”> tag (scroll down to somewhere in the middle of home.xml or search for "id=6"):
<item id="12">
<label>Internet</label>
<onclick>XBMC.System.Exec(C:\Program files\Mozilla Firefox\Firefox.exe)</onclick>
<icon>special://skin/backgrounds/firefox.jpg</icon>
</item>
(You can use any id as long as it's unique.)
So when you click on the "Internet"-item the browser will open up and when you're done surfing and close the browser-window, XBMC will popup again.
[EDIT]
Additionally if you want the screen to change to lower resolution before executing the browser or program so it's easier to read, here's what you do:
1. Download ResSwitch & ResCopy v1.24 (free) and extract it to C:\
2. Create a textfile in "C:\Program files\Mozilla Firefox" and name it: Firefox.bat, rightclick it and select Edit.
3. Add the following lines:
C:\ResSwitch.exe /WIDTH:1280 /HEIGHT:800
start /w C:\Program files\Mozilla Firefox\Firefox.exe
C:\ResSwitch.exe /WIDTH:1920 /HEIGHT:1080
4. Open Home.xml in ...\skin\Confluence\720p and change <onclick>XBMC.System.Exec(C:\Program files\Mozilla Firefox\Firefox.exe)</onclick> to
<onclick>XBMC.System.Exec(C:\Program files\Mozilla Firefox\Firefox.bat)</onclick> and save and close. Done!
5. Now when you click on the Internet-button in the Home-menu, XBMC will minimize, change resolution to 1240x800 and launch Firefox. When you exit Firefox the resolution will change back to default and XBMC will popup again.
SPOTIFY
Here's what i did to get Spotify to launch correctly:
<item id="13">
<label>Spotify</label>
<onclick>XBMC.System.Exec(C:\Spotify.bat)</onclick>
<icon>special://skin/backgrounds/spotify.jpg</icon>
</item>
Create a shortcut to Spotify.exe and place it in c:\ and rename it to "spotify.exe.lnk"
Create a spotify.bat file and put this in it:
C:\ResSwitch.exe /WIDTH:1280 /HEIGHT:800
C:\spotify.exe.lnk
C:\ResSwitch.exe /WIDTH:1920 /HEIGHT:1080
The ResSwitch is ofcourse optional.
Exit Spotify from the File menu otherwise the .bat-file won't continue to the next line and exit back to XBMC.
Add following code between the closing </item> tag and before the <item id=”6”> tag (scroll down to somewhere in the middle of home.xml or search for "id=6"):
<item id="12">
<label>Internet</label>
<onclick>XBMC.System.Exec(C:\Program files\Mozilla Firefox\Firefox.exe)</onclick>
<icon>special://skin/backgrounds/firefox.jpg</icon>
</item>
(You can use any id as long as it's unique.)
So when you click on the "Internet"-item the browser will open up and when you're done surfing and close the browser-window, XBMC will popup again.
[EDIT]
Additionally if you want the screen to change to lower resolution before executing the browser or program so it's easier to read, here's what you do:
1. Download ResSwitch & ResCopy v1.24 (free) and extract it to C:\
2. Create a textfile in "C:\Program files\Mozilla Firefox" and name it: Firefox.bat, rightclick it and select Edit.
3. Add the following lines:
C:\ResSwitch.exe /WIDTH:1280 /HEIGHT:800
start /w C:\Program files\Mozilla Firefox\Firefox.exe
C:\ResSwitch.exe /WIDTH:1920 /HEIGHT:1080
4. Open Home.xml in ...\skin\Confluence\720p and change <onclick>XBMC.System.Exec(C:\Program files\Mozilla Firefox\Firefox.exe)</onclick> to
<onclick>XBMC.System.Exec(C:\Program files\Mozilla Firefox\Firefox.bat)</onclick> and save and close. Done!
5. Now when you click on the Internet-button in the Home-menu, XBMC will minimize, change resolution to 1240x800 and launch Firefox. When you exit Firefox the resolution will change back to default and XBMC will popup again.
SPOTIFY
Here's what i did to get Spotify to launch correctly:
<item id="13">
<label>Spotify</label>
<onclick>XBMC.System.Exec(C:\Spotify.bat)</onclick>
<icon>special://skin/backgrounds/spotify.jpg</icon>
</item>
Create a shortcut to Spotify.exe and place it in c:\ and rename it to "spotify.exe.lnk"
Create a spotify.bat file and put this in it:
C:\ResSwitch.exe /WIDTH:1280 /HEIGHT:800
C:\spotify.exe.lnk
C:\ResSwitch.exe /WIDTH:1920 /HEIGHT:1080
The ResSwitch is ofcourse optional.
Exit Spotify from the File menu otherwise the .bat-file won't continue to the next line and exit back to XBMC.