Hi LLX users

Hi LLX users,

I would like to configure a script to associate with the home button.

This script should toggle between the default action “Go to home desktop, then zoom 100p” and, if I’m already on the home desktop, it should start google now instead.

I already figured out the code to start google now, but I don’t know how to detect whether I’m on the home desktop or whether an application is opened.

I checked the PropertySet, but couldn’t find any property that could help me.

I also tried to read the result of the Container.getView() method, but couldn’t find any doc about it.

Any help/hint/suggestion would be appreciated!

2 Commentsto Hi LLX users

  1. Mirko Kohler says:

    Hello Stany Freres​,

    in LLX you can set events for Lightning and events for the desktop itself.

    So let the default action for home button in lightning settings (go to home desktop, then zoom 100p) and set the action for home button in desktop settings either to your script to start google now or without script set action starting an app (googke now) direct.

    Now if an app is running the action from lightning settings is executed. Is lightning running the action of the current displayed desktop is executed.

  2. Stany Freres says:

    Hi Mirko Kohler​,

    Thanks for this answer. Your solution is indeed much easier than writing a complex script and works like a charm!

    Cheers!

Leave a Reply

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