Sign In:     


Forum: VirtualDJ Skins

Topic: Will this work?
<skin oninit="repeat_start 'titleWatcher' 1000ms -1 & set '$nowPlaying' `deck master get_title`"/>

I can seem to get this to work. It looks like the skin's oninit does not fire but I can't figure out why. Thank you.
 

Posted 5 days ago @ 7:33 pm
try
<onload="script"/>
 

The <init /> key is fired when the skin is selected/loaded after another skin has been selected/loaded first.

The <onload /> key is fired every time the skin loads, thus even after reselecting the same skin, or starting VirtualDj e.t.c.
 

Will this work for a video skin? It doesn't seem to.
 

<onload action="set_var 'MILONGA_NAME' 'apple'" />

This does not set the variable when I load/start the video skin.
 

It does work fine here.
Please note that since you're using a "local" variable, the variable is set on default deck, which upon startup at least is deck 1
<onload action="set_var &apos;testme&apos; &apos;oook&apos;"/>

 

Aaah, no <oninit /> and <onload /> keys are not valid for VIDEO skins.