diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:29:06 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:29:06 -0500 |
commit | c9482f642e51a3505ef491078d9761aa83d5761b (patch) | |
tree | 6e40e8559aa13f4687a4ec0ff653df597ca611a9 | |
parent | ebe5be3792d13d391fb2ecc924ab158bfdb1de4c (diff) | |
download | lua4win-dist-lua-c9482f642e51a3505ef491078d9761aa83d5761b.tar.gz lua4win-dist-lua-c9482f642e51a3505ef491078d9761aa83d5761b.tar.bz2 lua4win-dist-lua-c9482f642e51a3505ef491078d9761aa83d5761b.zip |
Get window ID later so we actually get the installer
-rwxr-xr-x | test | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,9 +6,9 @@ sleep 5 | |||
6 | DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i | 6 | DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i |
7 | # For some reason we have to set this here, having set .. ^ is not enough | 7 | # For some reason we have to set this here, having set .. ^ is not enough |
8 | DISPLAY=:99 msiexec /i lua4win.msi & | 8 | DISPLAY=:99 msiexec /i lua4win.msi & |
9 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") | ||
10 | WIN="Lua4Win Installer 1.0 Setup" | 9 | WIN="Lua4Win Installer 1.0 Setup" |
11 | DISPLAY=:99 xdotool sleep 3 | 10 | DISPLAY=:99 xdotool sleep 3 |
11 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") | ||
12 | # Click agree to terms | 12 | # Click agree to terms |
13 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png | 13 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png |
14 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 | 14 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 |