Tip for doing keyswitching (sending keystrokes) to a plugin from a scriptlet

I had some trouble to get this to work, so just wanted to make people aware that time between NoteOn and NoteOff in the code may be your issue.

See more in my post in this other thread;