AlarmClock(Name,Command,Time[,silent]) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: AlarmClock(Name,Command,Time[,silent]) (/showthread.php?tid=106919) Pages:
1
2
|
AlarmClock(Name,Command,Time[,silent]) - Dom DXecutioner - 2011-08-04 My goal is to move the focus on a fixedlist to the next item every 4 seconds. I am able to move the focus successfully using the following: PHP Code: <onclick>Control.Move(51,1)</onclick> Now I'm trying to automate this process using the AlarmClock function with the following code: PHP Code: <onclick>AlarmClock(AutoMove,Control.Move(51,1),4000)</onclick> Am I missing something here? Thanks in advance. - Jezz_X - 2011-08-04 just a guess but I think the time in alarm clock is second based so your making it wait 66 minutes - Jezz_X - 2011-08-04 actually I think it might even be minute based so its 66 hours - Dom DXecutioner - 2011-08-04 Jezz_X Wrote:actually I think it might even be minute based so its 66 hourshmp! i'm not sure why i thought it was in milliseconds; just checked and you're right, it is minute based... do you know of a way to make it in seconds? - Dom DXecutioner - 2011-08-04 well this bites... i seems i might have missunderstood the functionality of the AlarmClock function; I was under the impression that the function would reiterate the command at the specified interval, however, after waiting for 4 minutes to see the transition, it only occurred once. if this is the case, what a bummer! i wanted to accomplish the following starting at the 41 second mark: http://www.youtube.com/watch?v=8HSu4Dly4kY by the way, can this be accomplished? the auto-movement of the items? - Jezz_X - 2011-08-04 Dom DXecutioner Wrote:hmp! i'm not sure why i thought it was in milliseconds; just checked and you're right, it is minute based... do you know of a way to make it in seconds? Probably because every thing else in xbmc is Right now I think the only way you good do it is to use a script to do the action and fire off another timer - Dom DXecutioner - 2011-08-04 Jezz_X Wrote:Probably because every thing else in xbmc isThat's probably it Jezz_X Wrote:Right now I think the only way you good do it is to use a script to do the action and fire off another timerI guess this will have to wait Many thanks! - pieh - 2011-08-04 I guess it's valid to allow builtin accept hh:mms and maybe add optional parameter that it should keep running in loop (I'll think if there is any workaround for this). Nice idea btw Dom DXecutioner, damn that teasing trailers! - Dom DXecutioner - 2011-08-05 pieh Wrote:I guess it's valid to allow builtin accept hh:mms and maybe add optional parameter that it should keep running in loop (I'll think if there is any workaround for this).Agreed... i'm sure many talented skinners would find good use for that Let me know if you find a work around... otherwise i'm gonna have to work on a script to take care of this; though i suck at python pieh Wrote:Nice idea btw Dom DXecutioner, damn that teasing trailers!Thanks! As for the trailer... - pieh - 2011-08-09 from next nightly build You will be able to use Code: <window id="0"> - Jezz_X - 2011-08-10 umm when did we get <onload> and <onunload> ? because thats been asked for for a while back when we wanted to update the recently added after the library scan dialog closed. But I guess you added more to the alarm clock patch also the old code was AlarmClock(AutoMove,Control.Move(51,1),00:04,true,true) - ronie - 2011-08-10 pieh Wrote:? did i miss something? - `Black - 2011-08-10 He said "from next nightly build You will be able to use", so I think <onload> / <onunload> is also new. - Dom DXecutioner - 2011-08-10 pieh Wrote:from next nightly build You will be able to use Wow! Utterly sexy! OnLoad & OnUnload is a huge addition in itself... The AlarmClock update is definately a big plus; Many thanks! In the meantime I've been using the following python script, which seem to work rather nicely. PHP Code: import xbmc - pieh - 2011-08-10 actually <onload> / <onunload> was pushed to xbmc from boxee june 25, 2009 (https://github.com/xbmc/xbmc/commit/b6ba7d64383825fdee70bfe7a0ee4dde16a83ab4) I didn't spotted it earlier but lately code inspection throw this into my attention Jezz_X Wrote:also the old code was AlarmClock(AutoMove,Control.Move(51,1),00:04,true,true)I've changed alarmclock so params after time are optional flags: silent (or old "true" for backward compatibility) and loop Code: AlarmClock(AutoMove,Control.Move(51,1),00:04,true) // as it was (silent) if You prefer that params order is preserved I will change that |