default button delay in macro, tmacto to test buttons

This commit is contained in:
2025-06-26 20:37:33 +02:00
parent 138d742342
commit f97156f503
2 changed files with 61 additions and 0 deletions
+6
View File
@@ -21,9 +21,15 @@ jcrestart() {
}
jcmacro() {
buttonDelay='0.01'
if [[ ! -z $2 ]]; then
buttonDelay=$2
fi
while read -r line; do
if [[ ${line:0:1} != "#" ]]; then
jc "$line"
jc "sleep $buttonDelay"
fi
done < "$1"
}