Function windowsActivate

  • API Reference

    Opens a Windows application if not already open, and focuses the application.

    import { windowsActivate } from "@guidepup/guidepup";

    (async () => {
    // Opens Microsoft Edge if not already open, and focuses the window.
    await windowsActivate("msedge.exe", "Edge");
    })();

    Parameters

    • applicationPath: string

      Application executable path identifier.

    • applicationWindowTitle: string

      Application window title identifier.

    Returns Promise<void>