From 93a7b74c4e6c1b18f0f668926381fbf80672907d Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 2 Oct 2024 18:04:27 -0500 Subject: Use relative posisionts for test --- test | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test b/test index c8b4cfc..bac5993 100755 --- a/test +++ b/test @@ -6,28 +6,28 @@ sleep 5 DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i # For some reason we have to set this here, having set .. ^ is not enough DISPLAY=:99 msiexec /i lua4win.msi & -sleep 5 +win=$(DISPLAY=:99 xdotool search --sync --name "Installer") +WIN="Lua4Win Installer 1.0 Setup" # Click agree to terms -DISPLAY=:99 xwd -root | magick xwd:- png:/root/1.png -DISPLAY=:99 xdotool mousemove --sync 573 618 -sleep 1 -DISPLAY=:99 xwd -root | magick xwd:- png:/root/2.png +DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/1.png +DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 +DISPLAY=:99 xdotool sleep 0.1 DISPLAY=:99 xdotool click 1 -sleep 1 +DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/2.png # Click Install -DISPLAY=:99 xwd -root | magick xwd:- png:/root/3.png +DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 +DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/3.png DISPLAY=:99 xdotool mousemove --sync 725 666 sleep 1 -DISPLAY=:99 xwd -root | magick xwd:- png:/root/4.png +DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/4.png DISPLAY=:99 xdotool click 1 sleep 1 -DISPLAY=:99 xwd -root | magick xwd:- png:/root/5.png +DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/5.png DISPLAY=:99 xdotool mousemove --sync 743 666 sleep 1 -DISPLAY=:99 xwd -root | magick xwd:- png:/root/6.png +DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/6.png DISPLAY=:99 xdotool click 1 sleep 1 -DISPLAY=:99 xwd -root | magick xwd:- png:/root/7.png +DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/7.png tar -czf images.tar.gz *.png -exit -1 -- cgit v1.2.3-55-g6feb