Linux spam ability?

yes - you will need to open a terminal emulator and run these commands in a shell.

yes - that’s what the while loop does in the example i posted. it just runs the click command forever.

you will need to install the packages for your linux distribution that provide xwininfo and xdotool - on debian and ubuntu-like systems, it’s probably the x11-utils and xdotool packages.

to make something that fits your needs, you will probably need to learn a little shell scripting. you can find some guides online if you just google for linux shell scripting, or just reply back here and i can try to point you the right way.