Page 1 of 1

Restart/Refresh Lightning

Posted: Thu Oct 03, 2019 11:02 pm
by JayM
So i was mooching through the forum and came across this post viewtopic.php?t=100 i had to restart the launcher myself a few days ago and i did it using a shortcut, totally forgot it can be done with 1 line of code.

Anyways best way to do this IMO is open the script editor app create a new script and name it Restart Lightning (or whatever you want) make sure you check the box that says Lightning menu then type LL.runAction(28); for the script. Go back to your desktop long press the screen and go to scripts, thats pretty much it quick and easy way to restart the launcher without a shortcut cluttering your desktop :D

Re: Restart/Refresh Lightning

Posted: Mon Oct 07, 2019 12:47 pm
by TrianguloY
Yup.
Just for the sake of completeness, the updated and without magic numbers script (longer, but non-deprecated and easier to understand) is:

Code: Select all

getEvent().getScreen().runAction(EventHandler.RESTART);
Both do exactly the same thing.