Kodi Community Forum
Possible to run a script when Videos is accessed? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Archive (https://forum.kodi.tv/forumdisplay.php?fid=92)
+--- Forum: First-generation XBOX support (https://forum.kodi.tv/forumdisplay.php?fid=158)
+--- Thread: Possible to run a script when Videos is accessed? (/showthread.php?tid=73282)



Possible to run a script when Videos is accessed? - gabbott - 2010-05-05

I have a script to remotely wake up my media server via WOL named autoexec.py that runs when XBMC is started. Works fine.

Then I thought of possibly streamlining this further and having the script only run when Videos is accessed. Is this possible?


- Bomb Bloke - 2010-05-05

Yes, but it'd require manually editing your skin files. The idea is to have the Videos button start your script - the script wakes your server, then switches the display to the actual Videos menu.

(... at least, I'm pretty sure scripts can change the active window...)


- gabbott - 2010-05-06

Bomb Bloke Wrote:Yes, but it'd require manually editing your skin files. The idea is to have the Videos button start your script - the script wakes your server, then switches the display to the actual Videos menu.

(... at least, I'm pretty sure scripts can change the active window...)

Thanks, when I get some time I'll have to do some tinkering