diff options
| -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 |
