Good move good move.

however rather than setting a var, would this work

//timer.autoinput 1 10 sendkeys n | echo -s $input(Perform action?,y) | timer.autoinput off