Author Topic: React to changes in tokens?  (Read 3636 times)

Tkael

  • Newbie
  • *
  • Posts: 49
React to changes in tokens?
« on: October 21, 2016, 10:33:51 PM »
It would be awesome to react to be able to write commands which trigger in response to changes in token values. Is this possible?

Usage examples: write commands that trigger at a specific time each day, or that trigger after you've spent a certain amount of time on a given window (pomodoro time manager that reminds you to take regular breaks?), have finer control over profile switching, react to changes in a user variable, react if a window exists (even if it does not have focus), etc.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: React to changes in tokens?
« Reply #1 on: October 21, 2016, 11:32:58 PM »
It is white-boarded to produce variable change triggers, and that might be soon as it was actually discussed in a developer chat the other evening.  It will provide a more event-driven aspect to VA ;)

In the meantime, you'll have to spawn a looping command that checks the value of your variables/tokens and have the command react accordingly.  Scheduling is probably not something I would implement, as you already have a fantastic (and reliable) task scheduler built right into windows (and you can execute VA with the -command command line parameter) to remind you to do things.