Run a Script at shutdown.. - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: Run a Script at shutdown.. (/showthread.php?tid=47256) |
Run a Script at shutdown.. - Masternoob - 2009-03-20 i made a python script that shuts down my media server over LAN... now i want that if i power off the xbox that the server also shuts down... i need to run the script automaticly when i turn off the xbox... can someone tell me how this works? (sorry for my BAAAD english ) - althekiller - 2009-03-20 Welcome to the forums. There's currently no mechanism for running scripts at shutdown. Please fill out a feature request ticket on trac. - Waffa - 2009-03-20 You can start your script with your remote. <onclick>RunScript(script[,args]*)</onclick> If you use a harmony remote, create a button with 2 commands. - mikko70 - 2009-03-21 check this, what i added some time ago it add button in pm3 , where you could select shutdown xbox or shutdown xbox+nas, and there is script to shutdown lacie nas if you change your own script rename it to ShutdownNAS or change script name in PM3 http://forum.xbmc.org/showpost.php?p=277282&postcount=11 |