How to use the winax.Variant function in winax

To help you get started, we’ve selected a few winax examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aweiu / dm.dll / dist / index.js View on Github external
findPic(x1, y1, x2, y2, picName, deltaColor, sim, dir) {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        const index = dm.FindPic(x1, y1, x2, y2, picName, deltaColor, sim, dir, x, y);
        if (index !== -1) {
            return {
                x: Number(x),
                y: Number(y),
                index
            };
        }
    },
    findPicEx(x1, y1, x2, y2, picName, deltaColor, sim, dir) {
github aweiu / dm.dll / dist / index.js View on Github external
findStr(x1, y1, x2, y2, str, colorFormat, sim) {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        const index = dm.FindStr(x1, y1, x2, y2, str, colorFormat, sim, x, y);
        if (index !== -1) {
            return {
                index,
                x: Number(x),
                y: Number(y)
            };
        }
    },
    ocr(x1, y1, x2, y2, colorFormat, sim) {
github aweiu / dm.dll / dist / index.js View on Github external
findColor(x1, y1, x2, y2, color, sim, dir) {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        const ret = dm.FindColor(x1, y1, x2, y2, color, sim, dir, x, y);
        if (ret) {
            return {
                x: Number(x),
                y: Number(y)
            };
        }
    },
    getNowDict() {
github aweiu / dm.dll / dist / index.js View on Github external
getCursorPos() {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        dm.GetCursorPos(x, y);
        return { x: Number(x), y: Number(y) };
    },
    getKeyState(keyCode) {
github aweiu / dm.dll / dist / index.js View on Github external
findPic(x1, y1, x2, y2, picName, deltaColor, sim, dir) {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        const index = dm.FindPic(x1, y1, x2, y2, picName, deltaColor, sim, dir, x, y);
        if (index !== -1) {
            return {
                x: Number(x),
                y: Number(y),
                index
            };
        }
    },
    findPicEx(x1, y1, x2, y2, picName, deltaColor, sim, dir) {
github aweiu / dm.dll / dist / index.js View on Github external
findStr(x1, y1, x2, y2, str, colorFormat, sim) {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        const index = dm.FindStr(x1, y1, x2, y2, str, colorFormat, sim, x, y);
        if (index !== -1) {
            return {
                index,
                x: Number(x),
                y: Number(y)
            };
        }
    },
    ocr(x1, y1, x2, y2, colorFormat, sim) {
github aweiu / dm.dll / dist / index.js View on Github external
findColor(x1, y1, x2, y2, color, sim, dir) {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        const ret = dm.FindColor(x1, y1, x2, y2, color, sim, dir, x, y);
        if (ret) {
            return {
                x: Number(x),
                y: Number(y)
            };
        }
    },
    getNowDict() {
github aweiu / dm.dll / dist / index.js View on Github external
getClientSize(hWnd) {
        let width = new winax.Variant(-1, 'byref');
        let height = new winax.Variant(-1, 'byref');
        const ret = dm.GetClientSize(hWnd, width, height);
        if (ret) {
            return {
                width: Number(width),
                height: Number(height)
            };
        }
    },
    moveWindow(hWnd, x, y) {
github aweiu / dm.dll / dist / index.js View on Github external
getClientSize(hWnd) {
        let width = new winax.Variant(-1, 'byref');
        let height = new winax.Variant(-1, 'byref');
        const ret = dm.GetClientSize(hWnd, width, height);
        if (ret) {
            return {
                width: Number(width),
                height: Number(height)
            };
        }
    },
    moveWindow(hWnd, x, y) {
github aweiu / dm.dll / dist / index.js View on Github external
getCursorPos() {
        let x = new winax.Variant(-1, 'byref');
        let y = new winax.Variant(-1, 'byref');
        dm.GetCursorPos(x, y);
        return { x: Number(x), y: Number(y) };
    },
    getKeyState(keyCode) {

winax

Windows COM bindings

MIT
Latest version published 2 months ago

Package Health Score

66 / 100
Full package analysis