Function WinGetHandleAsText

  • Retrieves the handle of a window as a string.

    Parameters

    • windowTitle: string

      The title of the window to access.

    • windowText: string = ''

      Optional text found in the window.

    Returns string

    The handle of the window as a string.

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

    const handleText = WinGetHandleAsText('Untitled - Notepad');

    console.log(handleText); // Output: "0x00123456" (example output)