The relevant ProntoScript from that post is shown below. Using a normal button press the function called "doOneThing()" is executed. Using an extended button press the function called "doAnother()" is executed instead.
var counter = 0; onHold = function() { counter++; if (counter==1) { doAnother(); } } onHoldInterval = 1000; onRelease = function() { if (counter==0) {doOneThing(); } }
Now if the activity you are working with won't let you integrate the above ProntoScript per one of your hard buttons couldn't you just add a regular button to that activity that takes you to your lighting page?
LP Related Links: View my profile to access various links to key posts and downloads.