This is a small script I use to make tutorials and bug reports. Feel free to use it in your own videos.

This is a small script I use to make tutorials and bug reports. Feel free to use it in your own videos.

The script makes a label to cycle between sublabels, and shows the text with a small animation.

Note: the script is very simple, I could have make it more complex making it to auto configure itself, but instead I leave it small and commented it in case you want to learn a bit from it.

The video shows the recommended configuration

Disclaimer: the part where I almost deleted the custom font and even choosed a wrong one wasn’t intended. 😅

]]>
(Next Post) »

8 Commentsto This is a small script I use to make tutorials and bug reports. Feel free to use it in your own videos.

  1. Anonymous says:

    < ![CDATA[

    //the item


    var it=LL.getEvent().getItem();



    //the saved index, 0 if not found


    var ind=parseInt(it.getTag()||”0″);



    //the list of sublabels


    var list=it.getLabel().split(“\n\n”);



    //get the sublabel to show


    var l=list[ind];



    //save the next index


    it.setTag( (ind+1)%list.length );




    //the number of characters shown


    var index=0;



    //start the sideshow


    setTimeout(tick,250);




    function tick(){



    //the first characters are shown normally


    //the rest that are not line breaks/spaces are replaced with my old friend the ‘no break space’


    it.setLabel(


    l.substring(0,index)


    +l.substring(index,l.length).replace( /[^\n\r\s]/g , String.fromCharCode(0xA0) )


    );



    //update the index and, if there are still characters and the launcher is active, continue the sideshow


    index+=2;


    if(index< =l.length+1&&!LL.isPaused())


    setTimeout(tick,0);



    }

    ]]>

  2. Anonymous says:

    < ![CDATA[

    This is very cool. Thanks for sharing.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    In this case thanks to Colin de Roos​ who asked for it 🙂

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Thanks Colin de Roos for this great idea.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Evelien Wijbenga your giving me a bit too much credit there. xD The idea was TrianguloY​’s, but I only asked him to publish it 🙂


    So thank you TrianguloY​

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Yes, sorry. I was too short on my answer 😛


    In fact this script is very old, I can’t remember when I made it but if you look my showcasing script videos I’m sure you will find it in almost all of them. (The script even use the set/getTag without an extra argument! )


    But, nobody asked for it until today, when Colin did so.


    And here it is!

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Thanks TrianguloY​ for creating those great scripts and helping all of us.


    Also to the rest of the script creator’s: thank you.


    For making this launcher smarter for everyone.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    This your script + html tags for text in LL is very useful tool… Thanks

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *