From b244ab45d6f386ee7dbd6d898fc9948cc71eb1a3 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 16 Oct 2024 15:00:09 -0500 Subject: Try using hotkeys for the installer --- test | 71 +++++++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 26 deletions(-) diff --git a/test b/test index ab8da29..8bc13a6 100755 --- a/test +++ b/test @@ -8,40 +8,59 @@ DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i DISPLAY=:99 msiexec /i lua4win.msi & WIN="Lua4Win Installer 1.0 Setup" DISPLAY=:99 xdotool sleep 3 -win=$(DISPLAY=:99 xdotool search --sync --name "Installer") -# Click Next +# 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 "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 346 334 +# DISPLAY=:99 xdotool sleep 1 +# DISPLAY=:99 xdotool click 1 +# DISPLAY=:99 xdotool sleep 1 +# DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png +# # Click agree to liscense +# 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 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 +# DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png +# # Click next (Accept default install location) +# 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 +# DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/5.png +# # Click install +# DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/6.png +# DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 335 335 +# DISPLAY=:99 xdotool sleep 1 +# DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/7.png +# DISPLAY=:99 xdotool click 1 +# DISPLAY=:99 xdotool sleep 1 +# DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/8.png +# DISPLAY=:99 xdotool sleep 5 +# DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/9.png +# tar -czf images.tar.gz *.png + +# What if we use keyboard shortcuts instead? DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png -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 xdotool key --window $(DISPLAY=:99 xdotool search --sync --name "Installer") N DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png -# Click agree to liscense -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 key --window $(DISPLAY=:99 xdotool search --sync --name "Installer") a DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png -# Click next -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 key --window $(DISPLAY=:99 xdotool search --sync --name "Installer") N DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png -# Click next (Accept default install location) -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 key --window $(DISPLAY=:99 xdotool search --sync --name "Installer") N DISPLAY=:99 xdotool sleep 1 DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/5.png -# Click install -DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/6.png -DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 335 335 +DISPLAY=:99 xdotool key --window $(DISPLAY=:99 xdotool search --sync --name "Installer") I DISPLAY=:99 xdotool sleep 1 -DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/7.png -DISPLAY=:99 xdotool click 1 -DISPLAY=:99 xdotool sleep 1 -DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/8.png -DISPLAY=:99 xdotool sleep 5 -DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/9.png +DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/6.png tar -czf images.tar.gz *.png -- cgit v1.2.3-55-g6feb