Gets the handle of a control in a window.
The handle of the window to access.
The control to get the handle of.
A promise that resolves to the handle of the control.
import { ControlGetHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = await WinGetHandle('Untitled - Notepad');const controlHandle = await ControlGetHandle(windowHandle, 'Edit1');console.log(controlHandle); // Output: 0x0000000000000001 Copy
import { ControlGetHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = await WinGetHandle('Untitled - Notepad');const controlHandle = await ControlGetHandle(windowHandle, 'Edit1');console.log(controlHandle); // Output: 0x0000000000000001
https://www.autoitscript.com/autoit3/docs/functions/ControlGetHandle.htm
Gets the handle of a control in a window.