updated keystrokes.sh

pull/16/head
Hari Sekhon 2 years ago
parent b2927930f0
commit 29462cbfc6

@ -68,10 +68,10 @@ echo
for i in $(seq "$num"); do
for key in "${keys[@]}"; do
if [[ "$key" =~ ^[[:digit:]][[:digit:]]+$ ]]; then
timestamp "keystroke $i keycode $key"
timestamp "keystroke $i/$num keycode $key"
osascript -e "tell application \"System Events\" to key code $key"
else
timestamp "keystroke $i key $key"
timestamp "keystroke $i/$num key $key"
osascript -e "tell application \"System Events\" to keystroke \"$key\""
fi
sleep "$sleep_secs.$RANDOM" # add $RANDOM up to 1 second jitter to make it harder to spot that this is perfectly automated clicking

Loading…
Cancel
Save