#!/usr/bin/env bash
## https://gitlab.com/cunidev/gestures/-/wikis/xdotool-list-of-key-codes
function install() {
while :
do
xdotool search '微信安装向导'
NOTFOUND=$?
echo $NOTFOUND
if [ "$NOTFOUND" == "0" ]; then
sleep 80
xdotool key Tab
sleep 0.5
xdotool key space
xdotool key Return
sleep 16
break
fi
sleep 5
done
}
wine WeChatSetup.exe &
sleep 1m
install
wait
sleep 10