Page 1 of 1

Toggling an app on/off via device orientation?

Posted: 14 Dec 2015 04:25
by Alex
I use one app so much I want to toggle it on and off by rotating the phone sideways. I have found one way.

-trigger device orientation
-condition app task running
--> true: action show homescreen
-->false: action launch homescreen

Question:

I would like to use device orientation to toggle a global variable. How do I do this?

Re: Toggling an app on/off via device orientation?

Posted: 14 Dec 2015 20:13
by Martin
Hi,

You could use an action Script: global_variable=true; respectively Script: global_variable=false; to toggle the global variable after the condition is executed.

Regards,
Martin

Re: Toggling an app on/off via device orientation?

Posted: 15 Dec 2015 01:15
by Alex
Thank you. I'm having difficulty but I'll keep trying.