Solved How to auto switch back to XBMC after closing Internet Explorer
#1
I created a button to launch Internet Explorer from the XBMC home screen.

I'm using below python script by jhsrennie. It does launch IE but it doesn't switch back to XBMC after I close IE.
It's just showing the Windows desktop.

Code:
import sys
import subprocess

if (__name__ == "__main__"):
    child = subprocess.Popen("C:\Progra~2\Intern~1\iexplore.exe")
    rc = child.wait()
    child = subprocess.Popen("C:\Progra~1\XBMC\XBMC.exe")

sys.modules.clear()

I'm running Frodo 12.2 on Win7 SP1 x64.

What am I doing wrong?
Reply
#2
Mistake is pretty obvious:

Initially I used:
child = subprocess.Popen("C:\Progra~1\XBMC\XBMC.exe")

which should have been (for Win x64):
child = subprocess.Popen("C:\Progra~2\XBMC\XBMC.exe")

This works really well! It works easier than the AdvancedLauncher add-on.
I put the above code in a file called ie.py and run it with following command:
<onclick>XBMC.RunScript(C:\xbmc\ie.py)</onclick>
Reply

Logout Mark Read Team Forum Stats Members Help
How to auto switch back to XBMC after closing Internet Explorer0