PowerKeys Scripting API
    Preparing search index...

    Interface NotificationsAPI

    interface NotificationsAPI {
        Show(
            title: string,
            message: string,
            type?: "info" | "warning" | "error",
        ): void;
    }
    Index
    • Displays a desktop notification toast.

      Parameters

      • title: string

        Notification title text.

      • message: string

        Notification body text.

      • Optionaltype: "info" | "warning" | "error"

        Visual style hint. Defaults to info; other values are rejected. Ignored on platforms that do not support typed notifications.

      Returns void

      Notifications.Show("Macro Complete", "The automation finished.", "info");