Did anyone ever get in to these?

AutoKey (Linux): github.com/autokey/autokey

a desktop automation utility for Linux and X11

see maybe the wiki for some ideas of what it can do? github.com/autokey/autokey/wiki

AutoHotkey (Windows): www.autohotkey.com

The ultimate automation scripting language for Windows.

see maybe features www.autohotkey.com/#keyfeatures