Thank you very much for your answers, I finally opted for the "clavier+" which allows you to bind keys and simulate keystrokes. I wrote my variables and with a shortcut it replaced
For your second question read this post from @Fox ,
maybe its what you need. Its in Russian, but you can
use translator. There is an example script too >