#!/bin/sh Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & set DISPLAY=:99 sleep 5 msiexec /i lua4win.msi & sleep 5 DISPLAY=:99 xwd -root | magick xwd:- png:/root/1.png DISPLAY=:99 xdotool mousemove --sync 573 618 sleep 1 DISPLAY=:99 xwd -root | magick xwd:- png:/root/2.png DISPLAY=:99 xdotool click 1 sleep 1 DISPLAY=:99 xwd -root | magick xwd:- png:/root/3.png DISPLAY=:99 xdotool mousemove --sync 725 666 sleep 1 DISPLAY=:99 xwd -root | magick xwd:- png:/root/4.png DISPLAY=:99 xdotool click 1 sleep 1 DISPLAY=:99 xwd -root | magick xwd:- png:/root/5.png DISPLAY=:99 xdotool mousemove --sync 743 666 sleep 1 DISPLAY=:99 xwd -root | magick xwd:- png:/root/6.png DISPLAY=:99 xdotool click 1 sleep 1 DISPLAY=:99 xwd -root | magick xwd:- png:/root/7.png