hammerspoon2-docs
    Preparing search index...

    Function keyStrokes

    • Type a string of characters as individual key events. A 5 ms pause is inserted between each key-down and key-up event. This blocks the calling thread (the main thread) for the duration of typing — for long strings, prefer keyStrokesAsync() to avoid stalling the rest of Hammerspoon while typing.

      Parameters

      • text: string

        The string to type

      Returns void