The following videos describe how events and variables can be used to programmatically control the experiment:
Task Editor Stimulus Objects