From 5110cf35ae7b880eccbbae0b0493c23e6329a583 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 2 Oct 2024 18:13:45 -0500 Subject: Use quotes --- test | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test b/test index 589f6fb..260f286 100755 --- a/test +++ b/test @@ -7,14 +7,16 @@ 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" +DISPLAY=:99 xdotool sleep 0.1 # 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 xdotool sleep 0.1 DISPLAY=:99 xdotool click 1 -DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/3.png +DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png -- cgit v1.2.3-55-g6feb