apt install -y xautomation
-
mousemove
の座標はx,y -
mouseclick 1
は左クリック
autoclick.sh(例)
export DISPLAY=:0
autoclick() {
xte -x :0 "mouseclick 1"
}
start() {
xte -x :0 "mousemove 590 840"; autoclick
sleep 0.1
}
reload() {
xte -x :0 "key F5"
}
loop() {
for i in `seq 2000`
do
start
echo $i
done
reload
}
for i in `seq 50`
do
loop
done