Retrieves the handle of a window as a string.
The title of the window to access.
Optional text found in the window.
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) Copy
import { WinGetHandleAsText } from '@ahmic/autoit-js';const handleText = WinGetHandleAsText('Untitled - Notepad');console.log(handleText); // Output: "0x00123456" (example output)
https://www.autoitscript.com/autoit3/docs/functions/WinGetHandle.htm
Retrieves the handle of a window as a string.