2009-01-17, 18:33
I have created a script that will turn my monitor off. I know xbmc has a built in command to put the system in suspend or hibernate but I wanted all of my other programs to continue running. I know the script works as I can execute it from the scripts window and the screen will instantly go black. I am trying to set it up so that when I set the shutdown timer it will execute the script when the timer runs out. Here is the code I am using.
I have tested this several times by setting the alarm for 1-2 minutes. After the time has definitely passed and nothing happened I opened the shutdowntimer again thinking that something had gone wrong. I re-set the timer for 1-2 minutes and hit enter. At this point the screen instant goes black. In other words, the script is not actually running until the timer has expired, then I open the dialogue box again, enter a new time and hit enter. Then the script runs instantly. I can reproduce it every time.
I am running XBMC for windows compiled Jan 13th. I was planning on setting up something similar for my Linux box as well. I will test that and see if the same issue occurs. Anyone else have any thoughts?
Code:
<item id="8">
<description>Shutdown Timer</description>
<label>TIMER</label>
<onclick>XBMC.AlarmClock(shutdowntimer,XBMC.RunScript(Q:/scripts/system/monitoroff.py))</onclick>
</item>
I have tested this several times by setting the alarm for 1-2 minutes. After the time has definitely passed and nothing happened I opened the shutdowntimer again thinking that something had gone wrong. I re-set the timer for 1-2 minutes and hit enter. At this point the screen instant goes black. In other words, the script is not actually running until the timer has expired, then I open the dialogue box again, enter a new time and hit enter. Then the script runs instantly. I can reproduce it every time.
I am running XBMC for windows compiled Jan 13th. I was planning on setting up something similar for my Linux box as well. I will test that and see if the same issue occurs. Anyone else have any thoughts?