PowerKeys Scripting API
    Preparing search index...

    Interface KeySequence

    A batch of keyboard actions executed sequentially while holding the script's input lane. Other input operations cannot interleave between its steps, but operating-system scheduling can extend requested delays.

    interface KeySequence {
        Hold: (combo: string) => KeySequence;
        Release: (combo: string) => KeySequence;
        Press: (combo: string) => KeySequence;
        Sleep: (ms: number) => KeySequence;
        Type: (text: string) => KeySequence;
        Send: () => Promise<void>;
    }
    Index
    Hold: (combo: string) => KeySequence

    Queues a key-down for the given combo without releasing it.

    Release: (combo: string) => KeySequence

    Queues a key-up for a previously held combo.

    Press: (combo: string) => KeySequence

    Queues a full press+release for the given combo.

    Sleep: (ms: number) => KeySequence

    Queues a cancellable delay for at least the requested duration; OS scheduling can make the delay longer.

    Type: (text: string) => KeySequence

    Queues typing text character-by-character.

    Send: () => Promise<void>

    Executes all queued steps sequentially, clears the batch, and resolves when every step finishes.