UNPKG

@ahmic/autoit-js

Version:
15 lines (12 loc) 763 B
import './@types/point.js'; import './@types/rect.js'; import { VOID, HWND, LPCWSTR, LPWSTR, INT } from './@types/win32.js'; import { autoit } from './lib/autoit.js'; import { createUnicodeBuffer, unicodeBufferToString } from './util/buffer.util.js'; function ControlTreeViewByHandle(windowHandle, controlHandle, command, option1 = '', option2 = '', characterCount = 1024) { const [buffer, length] = createUnicodeBuffer(characterCount); autoit.invoke('AU3_ControlTreeViewByHandle', VOID, [HWND, HWND, LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, INT], [windowHandle, controlHandle, command, option1, option2, buffer, length]); return unicodeBufferToString(buffer); } export { ControlTreeViewByHandle }; //# sourceMappingURL=control-tree-view-by-handle.js.map