Instead of xdotool, try one of these 2.
Every alternative is lined up against xdotool on what people actually switch for: price, open source, self-hosting, offline use and platforms. xdotool sits in the first row, so you can see what you give up.
The product
What is xdotool?
This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and ot…
We have not checked xdotool’s price, licence or platforms yet. Know them? Tell us.
Screenshots
Live preview

Captured automatically from the app’s home page; the live site may differ.
Price colours on the Visit buttons: FreeFreemiumPaid
How to read this. The first row is xdotool itself, for comparison. “Yes” means fully supported by the maker. “Partial” means it works with caveats. Likes reflect community popularity; vendors can’t pay for them or for placement. How we compare.
xdotool alternatives at a glance
xdotool is listed under Code editors. We compared 2 alternatives. The most popular is Automator, with 33 likes.
With Automator, you can accomplish time-consuming, repetitive manual tasks quickly, efficiently, and effortlessly. Automator lets you skip t
Price and licence not checked yet