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?
Toggling an app on/off via device orientation?
Moderator: Martin
Re: Toggling an app on/off via device orientation?
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
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?
Thank you. I'm having difficulty but I'll keep trying.