If this template helps then use it. If not then just delete and start from scratch.
OS : Win7
PsychoPy version : 2
**What are you trying to achieve?: We have a task where we control attention by occasionally flashing a red colored band of #### marks and ask the subject to respond with a button press (stored as Keypress: r). I would like to be able to store the number of times the subject presses the red button within 600 ms of the red hash marks. I would like to output at the end of the program the number of correct times “r” was pressed after the red hash marks. The hash marks are displayed in a loop where an .xls file is read and each line is a different set of symbols or words and corresponding color (most are black, with occasional red). Please let me know if I can provide more information to clarify. Thank you for your help.