Automation Intro:
Filter:
Automation/Tutorials (extension) | GUI

Automation Intro
ExtensionExtension

Automation allows to record and playback live changes made to other GUI elements in particular, or anything else you wish to setup.

Description

Automation Getting Started Guide

Quick example:

  1. Install the Automation Quark and run below example code. This should open a GUI window with buttons and sliders.
  2. Click '[ô]' (record a snapshot of all current slider levels)
  3. Click 'O' (enable live recording, goes orange)
  4. Click '>' (play button), the time slider on the top moves.
  5. Do crazy motion on any sliders (record them, record button goes red).
  6. Click '<<' (rewind button), sliders repeat recorded motion.
  7. Grab a moving slider (overwrite previous recording).
  8. Click 'O' (disable recording), playing continues.
  9. Click '<<' (rewind again), enjoy watching your recording. If you grab sliders now, it doesn't affect the recorded values.
  10. Click '||' to stop playing, if you wish.
  11. Click '^', enter a writable directory and hit Return. (current slider recordings are saved to that directory)
  12. Restart your computer ;) (just for illustration)
  13. Relaunch below code, click '...', enter the same path as above and hit Return. (previous values are loaded from disk)
  14. Click '>' (play) and enjoy watching your previous slider motion.
  15. Go to the path as above and swap two files' names. Load again and observe that the sliders swap their motion. ;)

Installation

From the default Quarks directory:

If you'd like to use your local git checkout at e.g.'~/git/Automation' instead:

To remove:

Usage Details

You need at least one Automation class instance, where you register sliders (etc.) as desired. Every slider (etc.) is registered with a distinct name (for saving its recorded values to a file).

By "sliders", I also mean buttons and number boxes, and any controllable things as defined by AutoClient. It doesn't necessarily have to be GUI elements.

The Automation Control GUI, explained in detail:

Pitfalls

Examples