diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:10:58 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:10:58 -0500 |
commit | 9aecf1de66617f0863c804f398a6ed1194d45535 (patch) | |
tree | fcaf183d1f9a1b60eabd913dcf619ab3343fe2b3 | |
parent | 72b5de29e697b433c5c1e79c3f9da83542836049 (diff) | |
download | lua4win-dist-lua-9aecf1de66617f0863c804f398a6ed1194d45535.tar.gz lua4win-dist-lua-9aecf1de66617f0863c804f398a6ed1194d45535.tar.bz2 lua4win-dist-lua-9aecf1de66617f0863c804f398a6ed1194d45535.zip |
Take screenshots of the isntaller
-rwxr-xr-x | test | 21 |
1 files changed, 4 insertions, 17 deletions
@@ -7,27 +7,14 @@ DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i | |||
7 | # For some reason we have to set this here, having set .. ^ is not enough | 7 | # For some reason we have to set this here, having set .. ^ is not enough |
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" | ||
11 | # Click agree to terms | 10 | # Click agree to terms |
12 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/1.png | 11 | DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/1.png |
13 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 | 12 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 |
14 | DISPLAY=:99 xdotool sleep 0.1 | 13 | DISPLAY=:99 xdotool sleep 0.1 |
15 | DISPLAY=:99 xdotool click 1 | 14 | DISPLAY=:99 xdotool click 1 |
16 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/2.png | 15 | DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/2.png |
17 | # Click Install | 16 | # Click Install |
18 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 | 17 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 |
19 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/3.png | 18 | DISPLAY=:99 xdotool sleep 0.1 |
20 | DISPLAY=:99 xdotool mousemove --sync 725 666 | ||
21 | sleep 1 | ||
22 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/4.png | ||
23 | DISPLAY=:99 xdotool click 1 | ||
24 | sleep 1 | ||
25 | |||
26 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/5.png | ||
27 | DISPLAY=:99 xdotool mousemove --sync 743 666 | ||
28 | sleep 1 | ||
29 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/6.png | ||
30 | DISPLAY=:99 xdotool click 1 | 19 | DISPLAY=:99 xdotool click 1 |
31 | sleep 1 | 20 | DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/3.png |
32 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/7.png | ||
33 | tar -czf images.tar.gz *.png | ||