I would like a script that can use xdotool with variables.
This is a sample of what I have created. I have been searching for the correct way to setup a loop with variables that grow in a bash script. Any tips that can get me moving in the right direction would be awesome!
Code: Select all
#!/bin/bash
y=250
for(j=0; j lt 3; j++)
x=450
for(i=0; i lt 4; i++)
xdotool mousemove (x,y)
xdotool sleep 1
xdotool click --delay 800 1
xdotool sleep 1
x=x+175
Endfor
y=y+175
Endfor
It get this error https://imgur.com/a/udNsCUQ when I run it.
Thanks for your time.