-
Notifications
You must be signed in to change notification settings - Fork 6
/
install-wechat.sh
executable file
·50 lines (47 loc) · 1.05 KB
/
install-wechat.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/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 Tab
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key space
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key Return
sleep 16
xdotool key Tab
sleep 0.5
xdotool key Tab
sleep 0.5
xdotool key Return
break
fi
sleep 5
done
}
wine WeChatSetup.exe &
sleep 10
install
wait
sleep 10