This LUA can be used with the Keyboard Stimulator box to create a repeating stimulation pattern.
An image explaining how this script works.
Copy the script anywhere you can use it. Insert an Lua Stimulator box into your scenario and select the script file. Add one setting (Repeat Delay, float).
Note : The included scenario will work if you have set your Path_UserScripts variable to the location where the keyboard_repeater.lua file is located, otherwise you have to modify the path manually.
The script will wait for a stimulation with code greater than Label_00, once it is received it will repeat this stimulation every Repeat Delay seconds until it receives Label_00 stimulation.