@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
15 lines (12 loc) • 724 B
JavaScript
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 ControlCommandByHandle(windowHandle, controlHandle, command, option = '', characterCount = 1024) {
const [buffer, length] = createUnicodeBuffer(characterCount);
autoit.invoke('AU3_ControlCommandByHandle', VOID, [HWND, HWND, LPCWSTR, LPCWSTR, LPWSTR, INT], [windowHandle, controlHandle, command, option, buffer, length]);
return unicodeBufferToString(buffer);
}
export { ControlCommandByHandle };
//# sourceMappingURL=control-command-by-handle.js.map