From 9aecf1de66617f0863c804f398a6ed1194d45535 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 2 Oct 2024 18:10:58 -0500 Subject: Take screenshots of the isntaller --- test | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/test b/test index bac5993..589f6fb 100755 --- a/test +++ b/test @@ -7,27 +7,14 @@ 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 & win=$(DISPLAY=:99 xdotool search --sync --name "Installer") -WIN="Lua4Win Installer 1.0 Setup" # Click agree to terms -DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/1.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 -DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/2.png +DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/2.png # Click Install 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 -name $WIN | magick xwd:- png:/root/4.png -DISPLAY=:99 xdotool click 1 -sleep 1 - -DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/5.png -DISPLAY=:99 xdotool mousemove --sync 743 666 -sleep 1 -DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/6.png +DISPLAY=:99 xdotool sleep 0.1 DISPLAY=:99 xdotool click 1 -sleep 1 -DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/7.png -tar -czf images.tar.gz *.png +DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/3.png -- cgit v1.2.3-55-g6feb