After several days of frustration, I'm finally throwing in the towel and reaching out to the XBMC forum for a bit of programming help.
Basically, I'm hoping to recreate SophT's mod (which I was successfully able to do on my Windows 7 machine) using only Python scripts. As you can see, he used AHK files which aren't available in Linux.
What I need is a Python script that does the following:
- Upon click, launches Hulu Desktop
- After Hulu Desktop is opened, closes XBMC
- Waits until it recognizes Hulu Desktop is closed
- When Hulu Desktop is closed, runs XBMC
I have already modified my favorite skin (Alaska) to change "Programs" to read "Hulu Desktop" and successfully launch the following Python script:
The problem is, this only opens Hulu Desktop and leaves XBMC running in the background. Not only does this hog CPU cycles on my little Acer Aspire Revo 1600, but it means that the remote button presses are being registered in XBMC, causing all kinds of havoc. And sadly, I don't know enough Python to be able to perform the tasks I want and my search throughout the internet has gotten me no where.
Any solutions and/or a nicely written script I can copy/paste?