From fb086f3c3c31fde0d37cb1174596db8e363b526b Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Tue, 15 Oct 2024 12:37:38 -0500 Subject: We have to re-find the window every time, it's a different window. --- test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test b/test index 37e62d4..08a67d0 100755 --- a/test +++ b/test @@ -11,20 +11,20 @@ DISPLAY=:99 xdotool sleep 3 win=$(DISPLAY=:99 xdotool search --sync --name "Installer") # Click Next DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png -DISPLAY=:99 xdotool mousemove --window "$win" --sync 346 334 +DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 346 334 DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xdotool click 1 DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png DISPLAY=:99 xdotool sleep 1 # Click agree to liscense -DISPLAY=:99 xdotool mousemove --window "$win" --sync 34 286 +DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 34 286 DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xdotool click 1 DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png # Click next DISPLAY=:99 xdotool sleep 1 -DISPLAY=:99 xdotool mousemove --window "$win" --sync 350 337 +DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 350 337 DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xdotool click 1 DISPLAY=:99 xdotool sleep 1 -- cgit v1.2.3-55-g6feb