Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84817

Toggle Internet Explorer on/off with python script?

$
0
0
I'm using below python script by jhsrennie to launch Internet Explorer.
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?

Viewing all articles
Browse latest Browse all 84817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>