diff options
-rwxr-xr-x | test | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,16 +8,16 @@ DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i | |||
8 | DISPLAY=:99 msiexec /i lua4win.msi & | 8 | DISPLAY=:99 msiexec /i lua4win.msi & |
9 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") | 9 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") |
10 | WIN="Lua4Win Installer 1.0 Setup" | 10 | WIN="Lua4Win Installer 1.0 Setup" |
11 | DISPLAY=:99 xdotool sleep 0.1 | 11 | DISPLAY=:99 xdotool sleep 1 |
12 | # Click agree to terms | 12 | # Click agree to terms |
13 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png | 13 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png |
14 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 | 14 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 |
15 | DISPLAY=:99 xdotool sleep 0.1 | 15 | DISPLAY=:99 xdotool sleep 1 |
16 | DISPLAY=:99 xdotool click 1 | 16 | DISPLAY=:99 xdotool click 1 |
17 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png | 17 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png |
18 | # Click Install | 18 | # Click Install |
19 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 | 19 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 |
20 | DISPLAY=:99 xdotool sleep 0.1 | 20 | DISPLAY=:99 xdotool sleep 1 |
21 | DISPLAY=:99 xdotool click 1 | 21 | DISPLAY=:99 xdotool click 1 |
22 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png | 22 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png |
23 | tar -czf images.tar.gz *.png | 23 | tar -czf images.tar.gz *.png |