diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-10-15 12:37:38 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-10-15 12:37:38 -0500 |
commit | fb086f3c3c31fde0d37cb1174596db8e363b526b (patch) | |
tree | f8dcd87d5311fa1a967352ffb3dac0be54513cb3 | |
parent | 3d4da26ff451ef256bb695fbe02b89f866615451 (diff) | |
download | lua4win-dist-lua-fb086f3c3c31fde0d37cb1174596db8e363b526b.tar.gz lua4win-dist-lua-fb086f3c3c31fde0d37cb1174596db8e363b526b.tar.bz2 lua4win-dist-lua-fb086f3c3c31fde0d37cb1174596db8e363b526b.zip |
We have to re-find the window every time, it's a different window.
-rwxr-xr-x | test | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -11,20 +11,20 @@ DISPLAY=:99 xdotool sleep 3 | |||
11 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") | 11 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") |
12 | # Click Next | 12 | # Click Next |
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 346 334 | 14 | DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 346 334 |
15 | DISPLAY=:99 xdotool sleep 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 | DISPLAY=:99 xdotool sleep 1 | 18 | DISPLAY=:99 xdotool sleep 1 |
19 | # Click agree to liscense | 19 | # Click agree to liscense |
20 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 34 286 | 20 | DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 34 286 |
21 | DISPLAY=:99 xdotool sleep 1 | 21 | DISPLAY=:99 xdotool sleep 1 |
22 | DISPLAY=:99 xdotool click 1 | 22 | DISPLAY=:99 xdotool click 1 |
23 | DISPLAY=:99 xdotool sleep 1 | 23 | DISPLAY=:99 xdotool sleep 1 |
24 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png | 24 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png |
25 | # Click next | 25 | # Click next |
26 | DISPLAY=:99 xdotool sleep 1 | 26 | DISPLAY=:99 xdotool sleep 1 |
27 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 350 337 | 27 | DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 350 337 |
28 | DISPLAY=:99 xdotool sleep 1 | 28 | DISPLAY=:99 xdotool sleep 1 |
29 | DISPLAY=:99 xdotool click 1 | 29 | DISPLAY=:99 xdotool click 1 |
30 | DISPLAY=:99 xdotool sleep 1 | 30 | DISPLAY=:99 xdotool sleep 1 |