@ahmic/autoit-js
    Preparing search index...

    Function WinActivate

    • Activates a window.

      Parameters

      • windowTitle: string

        The title of the window to activate.

      • windowText: string = ''

        Optional text found in the window.

      Returns Promise<number>

      A promise that resolves to 1 if successful, or 0 otherwise.

      import { WinActivate } from '@ahmic/autoit-js';

      await WinActivate('Untitled - Notepad');