I'm using below python script by jhsrennie to launch Internet Explorer.
When I close IE, it automatically switches back to XBMC. Pretty cool!
I assigned this script to a button on my MCE remote. I mapped another button to ALT+F4 to close Internet Explorer.
Is it possible to edit the above script so that I can switch IE on/off with just a single key?
When I close IE, it automatically switches back to XBMC. Pretty cool!
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~2\XBMC\XBMC.exe")
sys.modules.clear()
I assigned this script to a button on my MCE remote. I mapped another button to ALT+F4 to close Internet Explorer.
Is it possible to edit the above script so that I can switch IE on/off with just a single key?