Command queue with delays
Posted: Tue Sep 20, 2016 6:36 am
Inspired by Jor'Mox sendQueue, I decided to make my own commandqueue system, together with an alias "q" to make it easy to run from the command line.
Function usage example: commandQueue(1,"look",2,"e","e",0.5,"kill kobold")
Same using the alias: q 1, look, 2, e, e, 0.5, kill kobold
You can have several pauses in a row if needed: q who,1,2,3,look will send "who", wait 6 seconds, and then send "look".
Place it in a new script and save it and it will create the alias for you. If you want to change the alias pattern you do it in the script and save the script again. The current alias pattern is ^q (.*)
Function usage example: commandQueue(1,"look",2,"e","e",0.5,"kill kobold")
Same using the alias: q 1, look, 2, e, e, 0.5, kill kobold
You can have several pauses in a row if needed: q who,1,2,3,look will send "who", wait 6 seconds, and then send "look".