Arcendus
Lurker
I've managed to parse together the following Profile for activating Daydream after 30 seconds of inactivity, which I plan to use (along with adjusting Display Timeout accordingly) as a clock in my car:
Event: AutoInput UI Action Reacting to clicks on the Android UI [AutoInput Plugin]
Tasks:
1. Variable Set: Name %count To 0
2. If: %SCREEN eq on, Label: Loop
3. Variable Add: Name %count Value 1
4. Wait: 1 Seconds
5. If: %count eq 30
6. Launch App: App Daydream
7. Else If: %count > 10
8. Variable Set: Name %count To 0
9. End If
10. Goto: Type Action Label Loop
11. End If
Two problems with this:
So any help with this, or a simpler alternative would be greatly appreciated.
Event: AutoInput UI Action Reacting to clicks on the Android UI [AutoInput Plugin]
Tasks:
1. Variable Set: Name %count To 0
2. If: %SCREEN eq on, Label: Loop
3. Variable Add: Name %count Value 1
4. Wait: 1 Seconds
5. If: %count eq 30
6. Launch App: App Daydream
7. Else If: %count > 10
8. Variable Set: Name %count To 0
9. End If
10. Goto: Type Action Label Loop
11. End If
Two problems with this:
- This Profile never pauses the advancing of %count. It just triggers on the Event (AutoInput UI Action) and counts non-stop until 11, then resets. Well, I need % count to reset to 0 when the screen is touched at all. Theoretically this could be accomplished by having another Profile with the same Event that sets %Count to 0 (after being made into a global variable), but...
- I'm just now realizing that AutoInput UI Action is restricted to when something is actually pressed--so a scroll will not reset the timer. Which won't work for me, because I need this to function basically the same as display timeout, but with a Daydream instead of screen sleep.
So any help with this, or a simpler alternative would be greatly appreciated.