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

    Function WinSetOnTopByHandle

    • Sets whether a window is on top of all other windows.

      Parameters

      • windowHandle: bigint

        The handle of the window to set on top.

      • onTop: boolean

        Whether to set the window on top or not.

      Returns Promise<number>

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

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

      const windowHandle = await WinGetHandle('Untitled - Notepad');

      await WinSetOnTopByHandle(windowHandle, true);