I am a total noob in scripting but today I finally learned a lot of things in javascript and finally managed to make…

I am a total noob in scripting but today I finally learned a lot of things in javascript and finally managed to make fully working animations. Here are 2 screenshots and a gif to show how it works.

Also I’m having a bug. The widgets that are moved by the script sometimes just goes fully blank and I can’t open them. I don’t know if it’s launcher or ZW fault. The way to fix this is to open widget editor of any widget and it fixes.

]]>

19 Commentsto I am a total noob in scripting but today I finally learned a lot of things in javascript and finally managed to make…

  1. Anonymous says:

    < ![CDATA[

    Looks terrific!

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Arun kumar​ Thank you very much ☺

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Josh Gray​ thanks!

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Josh Gray​ everything you can see on the home screen was made in Zopper

    ]]>

  5. Anonymous says:

    < ![CDATA[

    How do you move items depending on the scroll position?

    ]]>

  6. Anonymous says:

    < ![CDATA[

    James Coyle​ As I said at the beginning of the post I’m using a script lol

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Patryk Goworowski I know that. Do you have code you can share?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    James Coyle​ Yeah, why not. Here it is:


    var d=LL.getCurrentDesktop();


    var y=d.getPositionY();



    // picture


    d.getItemByName(“Picture”).setPosition(0,y/2);



    //topbar front


    var T1=d.getItemByName(“Topbar”);


    var c=d.getItemByName(“Topbar”).getPositionY();


    if(c< -192)


    T1.setPosition(0,-192);


    else


    T1.setPosition(0,-2*y);



    //second topbar


    T2=d.getItemByName(“Topbar2”);


    var pos=T2.getPositionY();


    var x=y-192


    if(c=-192 && pos<382)


    T2.setPosition(0,x*2);


    else


    T2.setPosition(0,y);



    //FAB


    var f=d.getItemByName(“FAB”);


    var fp=f.getPositionY();


    var z=y+277.5;


    var zy=y+953


    if(fp< =1358)


    f.setPosition(584,z*2);


    else


    f.setPosition(584,zy);

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Thanks for sharing.


    The problem with disappearing widgets is mainly caused by zooper using to much memory. I found uccw works much better.

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Sergio Azar No problem, but Why only widgets that are moved by script disappears, but others don’t?

    ]]>

  11. Anonymous says:

    < ![CDATA[

    I can’t give you a definite answer but it has been discussed on other posts. As I understand it, animated widgets uses more memory when detached. LLX uses a certain amount of memory for each function it performs, zooper widgets in particular demands more memory so it disappears as a result.

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Sergio Azar​ Ok, thanks for information ☺

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Patryk Goworowski So LL.getCurrentDesktop().getPositionY(); is the scroll position of the desktop? And where do you set this script? 

    ]]>

  14. Anonymous says:

    < ![CDATA[

    James Coyle​ Yeah, just set this script to run when ‘position changed’ I didn’t know how to make it work like this till yesterday ☺

    ]]>

  15. Anonymous says:

    < ![CDATA[

    Patryk Goworowski Ok thanks. That was pretty much all I need to know for my setup. 😀

    ]]>

  16. Anonymous says:

    < ![CDATA[

    James Coyle​ I’m glad I could help. Hope you make something cool with this script 😀

    ]]>

  17. Anonymous says:

    < ![CDATA[

    hi, can u make a tutorial on ur blogspot please.

    ]]>

  18. Anonymous says:

    < ![CDATA[

    Daniel S.​ Yeah, probably I will make one, but I don’t know when because now I’m very busy with school and first I want to finish my setup and maybe add some useful scripts or write a better code.

    ]]>

  19. Anonymous says:

    < ![CDATA[

    ok nice! i have time 🙂

    ]]>

Leave a Reply

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