Skip to navigation
Example to run an Autohotkey script headless by running it in a virtual Display
24.04.25
#!/bin/bash Example to run an Autohotkey script headless by running it in a virtual Display * run windows up with wine * check, create and delete for older Vvfb screen * create a Vvfb Display and screen * assign a Display and screen to the wine app ```bash echo "... start virtual x" pids=$(pidof /usr/bin/Xvfb) echo "...pids: " echo $pids if [ -n "$pids" ]; then echo "...kill screen proc: "$pids p="$(ps --format command --no-headers -ww --pid $pids)" kill $pids # Check the file is exists or not if [ -f tmp/.X1-lock ]; then rm tmp/.X1-lock fi fi sleep 10 if [ -n "$pids" ]; then echo "...kill screen proc: "$pids p="$(ps --format command --no-headers -ww --pid $pids)" kill $pids # Check the file is exists or not if [ -f tmp/.X1-lock ]; then rm tmp/.X1-lock fi fi sleep 10 echo "...create new virtual screen" Xvfb :1 -screen 0 1024x768x16 & pids=$(pidof /usr/bin/Xvfb) echo "...screen created: "$pids sleep 10 echo "...start autohotkey" DISPLAY=:1.0 wine AutoHotkey32.exe balance.ahk ```
https://leimao.github.io/blog/Docker-Wine/
Reply
Anonymous
Information Epoch 1747024398
Avoid captive user interfaces.
Home
Notebook
Contact us