Scripting help request :)

Scripting help request 🙂

I’ve set up my new desktop with a sidebar which has shortcuts to different positions (pages) on my desktop. I want to be able to highlight whichever shortcut is for the current position (similar to the sidebar on the Inbox app).

So basically I need to highlight an item in a folder based on desktop position and have no idea where to start. I recall a post from a whole back from someone who did something similar based on which folder they had open but I can’t find the post now. Any help would be greatly appreciated.

]]>

9 Commentsto Scripting help request :)

  1. Anonymous says:

    < ![CDATA[

    I created a script which passed the open folder name as a variable to Zooper. I then had Zooper display the folder name and change the icon (bitmap) – like passing a variable from Tasker. Was this what you where thinking?



    If so, it was around September – having trouble copying G+ link 😕



    There are other more efficient LLX non Zooper solutions which have been suggested by other posters.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Look at that post https://plus.google.com/104164990045628474469/posts/AXKZuSRnYSq if it’s smth like that you want I can share the script, but I have to say, I’m a noob in scripting :-/ so many guys over here can do a really better script, but it will be a pleasure to share if it helps you 🙂

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Tony Merrell-Jones​ I’m looking for an LLX solution. I’m trying to reduce the number of widgets in my setup to keep the memory usage down a little. Thanks though.



    Stahw Down​ something like that. Can you share that? It would at least give me a starting point.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Stahw Down I would love to see your script! I was trying to do a theme that looked like tabbed pages in a catalog. My solution wasn’t nearly as elegant and got pushed to the back burner. Maybe now I could finish it. Haha

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Stahw Down Could your script be modified to change the label of a “do nothing” shortcut instead of the zooper widget?

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Here’s what I’ve come up with. It doesn’t work on the position changed event of the desktop but it works on resumed. Anyone know what’s going on?



    var color = 0x1d000000; //12% black


    var xpos = LL.getEvent().getContainer().getPositionX(); // Get Desktop X position


    if (xpos< =850 && xpos>-230) {


    var editor=LL.getItemById(6750221).getProperties().edit(); // Get Home Shortcut


    }


    if (xpos< =1930 && xpos>850) {


    var editor=LL.getItemById(6750222).getProperties().edit(); // Get Calendar Shortcut


    }


    if (xpos< =3010 && xpos>1930) {


    var editor=LL.getItemById(6750223).getProperties().edit(); // Get Weather Shortcut


    }


    if (xpos< =4090 && xpos>3010) {


    var editor=LL.getItemById(6750216).getProperties().edit(); // Get Now Playing Shortcut


    }



    editor.getBox(“i.box”).setColor(“c”,”ns”,color);


    editor.commit();

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Here’s my script


    Create a shortcut ‘do nothing’ customize as you want, set the script in tap action of each part of the menu. Let me know if you need more instruction var a=LL.getCurrentDesktop();


    var panel=a.getItemById(0x030001).getContainer();// id container eg panel


    var indic=panel.getItemById(0x720009);//id shortcut ‘do nothing’


    var touchx=LL.getEvent().getItem().getPositionX();


    var touchy=LL.getEvent().getItem().getPositionY();



    var posindic=indic.setPosition(touchx,touchy);



    switch (touchy) {


    case 128:


    LL.getCurrentDesktop().setPosition(0,0);


    break;//change 128 with the menu coordinate and (0,0) with the screen coordinate



    case (128*2):


    LL.getCurrentDesktop().setPosition(0,1280);


    break;



    case (128*3):


    LL.getCurrentDesktop().setPosition(0,(1280*2));


    break;



    case (128*4):


    LL.getCurrentDesktop().setPosition(0, (1280*3));


    break;



    case (128*5):


    LL.getCurrentDesktop().setPosition(0,(1280*4));


    break;


    }


    ]]>

  8. Anonymous says:

    < ![CDATA[

    Carolyn Boyle it is a ‘do nothing’ shortcut but if you want to change the label it won’t run, but I have one script for that, if it helps you… 🙂


    Tell me exactly what you want to do and I can try to write something

    ]]>

Leave a Reply

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