Does this do something like TextExpander and Keyboard Maestro? is that the general idea?
The one thing I really can't stand about macOS is "Secure Input". It won't let you use something like TE or KM to input a password. You're forced to copy and paste.
As far as I understand, you can't disable that feature either... because securiteh! :/