I want to create a custom window to use this condition to pop up a little white text line with a black background at the bottom of the screen, similar to the VideoFullScreen you get which tells you codec info etc. This way, if you put an alarm on XBMC will warn you a couple of minutes before it shuts down whereever you are (home screen, file manager, fullscreen video etc) should you want to cancel it.
I don't know exactly how to go about this though... can anyone point me in the right direction?
How to use the System.HasAlarm(alarm) boolean condition?
zackpliskin
Senior Member Posts: 144 Joined: Dec 2008 Reputation: 0 |
|
| find quote |
watzen
Fan Joined: Jan 2007 Reputation: 10 Location: Sweden |
2009-06-29 00:04
Post: #2
to do this you should use this instead:
Quote:System.AlarmLessOrEqual(alarmname,seconds) Returns true if the alarm with ?alarmname? has less or equal to ?seconds? left. Standard use would be system.alarmlessorequal(shutdowntimer,119), which would return true when the shutdowntimer has less then 2 minutes left.
|
| find quote |
zackpliskin
Senior Member Posts: 144 Joined: Dec 2008 Reputation: 0 |
2009-06-29 13:55
Post: #3
watzen Wrote:to do this you should use this instead: Ah yes... I thought that's what I wrote but I accidentally put the wrong boolean in. I still don't know how to use it though, and I've been trying for ages. I just want a custom window which, when there is five minutes or less on the shutdown timer, pops up a white text dialogue on a black background at the bottom of the screen, that appears on any screen (Home, Fullscreen Video etc). As it stands I can't even get it to show up a generic text window by using a custom#.xml file, even after following the HOW-TO tutorial in the wiki manual. |
| find quote |
hexed6
Junior Member Posts: 18 Joined: Mar 2009 Reputation: 0 |
2009-06-29 18:27
Post: #4
I've never touched alarms, but you probably want to put something like this in Includes.xml:
Code: <include name="ShutdownNotify">Then for every window you'd like that to show up, just <include>ShutdownNotify</include> |
| find quote |

Search
Help