Skip to content

Instantly share code, notes, and snippets.

@ravicious
Last active December 15, 2015 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravicious/5280241 to your computer and use it in GitHub Desktop.
Save ravicious/5280241 to your computer and use it in GitHub Desktop.
  1. Create a project named Say the time and navigate to it.
  2. Create a task Say the time:
  3. Action: Variable Split 3. Name: %TIME 3. Splitter: . (a dot)
  4. Action: Say 3. Text: %TIME1 %TIME2 3. Stream: Media
  5. Create a task [Say the time] Screen on:
  6. Action: Variable Set 3. Name: %ScreenOnTime 3. To: %TIMEMS
  7. Create a task [Say the time] Set time variables:
  8. Action: Variable Set 3. Name: %TimePassed 3. To: %ScreenOffTime-%ScreenOnTime 3. If: %ScreenOffTime > %ScreenOnTime
  9. Action: Variable Set 3. Name: %TimeThreshold 3. To: 2000
  10. Action: Variable Set 3. Name: %TimePassedCheck 3. To: 1 3. If: %TimePassed < %TimeThreshold
  11. Action: Variable Set 3. Name: %TimePassedCheck 3. To: 0 3. If: %TimePassed > %TimeThreshold
  12. Create a task [Say the time] Screen off:
  13. Action: Variable Set 3. Name: %ScreenOffTime 3. To: %TIMEMS
  14. Action: Perform Task 3. Name: [Say the time] Set time variables
  15. Action: Perform Task 3. Name: Say the time 3. If: %TimePassedCheck = 1
  16. Create a profile:
  17. State: Headset Plugged
  18. Event: Display On
  19. Enter task: [Say the time] Screen on
  20. Create a profile:
  21. State: Headset Plugged
  22. Event: Display Off
  23. Enter task: [Say the time] Screen off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment