This appears to be fine, however there are some VERY important things that need to be remembered.
You must remain at your computer and attentive, in case a GM or other wants to chat or verify things.
You can ONLY send this string to ONE client, using the normal logitech software should be fine since it just acts like keystrokes.
You can only send actions to fill your queue, 20ML = 3 actions, 40ML = 5 actions, etc. This applies to physical keypress. Holding down a key with w/e is still against the rules.
And No looping, or delays other then normal keypress delays.
About your question about just pressing it once every second, since you are unlikely to finish the actions in under a second, no probably not. Best to wait a few seconds, atleast make sure that the actions have finished before you send another string of commands.