@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
31 lines (28 loc) • 1.52 kB
JavaScript
import './@types/point.js';
import './@types/rect.js';
import { VOID, LPCWSTR, LPWSTR, INT } from './@types/win32.js';
import { autoit } from './lib/autoit.js';
import { createUnicodeBuffer, unicodeBufferToString } from './util/buffer.util.js';
var ListViewCommand;
(function (ListViewCommand) {
ListViewCommand["DeSelect"] = "DeSelect";
ListViewCommand["FindItem"] = "FindItem";
ListViewCommand["GetItemCount"] = "GetItemCount";
ListViewCommand["GetSelected"] = "GetSelected";
ListViewCommand["GetSelectedCount"] = "GetSelectedCount";
ListViewCommand["GetSubItemCount"] = "GetSubItemCount";
ListViewCommand["GetText"] = "GetText";
ListViewCommand["IsSelected"] = "IsSelected";
ListViewCommand["Select"] = "Select";
ListViewCommand["SelectAll"] = "SelectAll";
ListViewCommand["SelectClear"] = "SelectClear";
ListViewCommand["SelectInvert"] = "SelectInvert";
ListViewCommand["ViewChange"] = "ViewChange";
})(ListViewCommand || (ListViewCommand = {}));
function ControlListView(windowTitle, windowText, controlId, command, option1 = '', option2 = '', characters = 1024) {
const [buffer, length] = createUnicodeBuffer(characters);
autoit.invoke('AU3_ControlListView', VOID, [LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, INT], [windowTitle, windowText, controlId, command, option1, option2, buffer, length]);
return unicodeBufferToString(buffer);
}
export { ControlListView, ListViewCommand };
//# sourceMappingURL=control-list-view.js.map