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

    Function WinActivateByHandle

    • Activates a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to activate.

      Returns Promise<number>

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

      import { WinActivateByHandle, WinGetHandle } from '@ahmic/autoit-js';

      const handle = await WinGetHandle('Untitled - Notepad');
      await WinActivateByHandle(handle);