sendkeys

The sendkeys function sends keystrokes to the foreground window.

The format that is used in Unimacro and Vocola is translated into Dragonfly format, and the dragonfly.actions.action_key.Key class performs the actions.

This replaces the natlink.playString function of Natlink and the SendInput of Vocola.

At top of module insert:

from dtactions.sendkeys import sendkeys

And then in the appropriate place in the code:

sendkeys("keystrokes")

sendkeys module