AutoX11 is a tool to automate tasks in an X11 environment.
It is intended to be used in shell scripts, utilizing the shell's logic.

If for whatever reason you want to use AutoX11 to type -h or --help, you can split it up into two calls to avoid getting the help text instead;
autox11 type -; autox11 type h

example script that closes all visible inactive windows every 10 seconds (because I couldn't come up with a better idea for an example that isn't too specific):
#!/bin/sh
while true; do
  autox11 click inactiveXbutton.png && continue
  sleep 10
done
