aweiu / dm.dll Goto Github PK
View Code? Open in Web Editor NEWJS 版按键精灵(大漠插件)
JS 版按键精灵(大漠插件)
winax.Object('dm.dmsoft')
你好,
我调用bindWindow时,代码直接停止执行了,看了下退出代码是 1073741819。我是用管理员权限打开cmd,然后node xxx.js运行的代码,其他类似查找窗口,键盘鼠标调用,暂时都没发现问题。
请问您知道这是什么问题怎么解决吗?
感谢!
之前用清风的编辑器,不是很好用,就想自己用node去调dm.dll,什么都弄好了,
const ffi = require('ffi');
const path = `require('path');`
var libpath = path.join(__dirname, './dm.dll');
var dm = ffi.Library('libpath', {
'MoveTo': ['int', 'int'],
});
dm.MoveTo(10,20)
console.log(dm)
就是报错
Error: Dynamic Linking Error: Win32 error 126
搞了好多天,百度不到解决办法,翻墙终于在掘金找到了这个成品,npm,分分钟就调通了,6啊,看代码去,感谢大佬
我在Electron中运行,已经rebuild过了 node 12.18.3-x86 Electron 9.1.0 运行时出现问题
[ele] Error: Command failed: regsvr32 D:\workspace\qqsg_dm_electron\node_modules\dm.dll\dist\dm.dll /s [ele] at checkExecSyncError (child_process.js:630:11) [ele] at Object.execSync (child_process.js:666:15) [ele] at Object.execSync (electron/js2c/asar.js:727:23) [ele] at getDM (D:\workspace\qqsg_dm_electron\node_modules\dm.dll\dist\index.js:10:25) [ele] at Object.<anonymous> (D:\workspace\qqsg_dm_electron\node_modules\dm.dll\dist\index.js:14:12) [ele] at Module._compile (internal/modules/cjs/loader.js:967:30) [ele] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10) [ele] at Module.load (internal/modules/cjs/loader.js:815:32) [ele] at Module._load (internal/modules/cjs/loader.js:727:14) [ele] at Function.Module._load (electron/js2c/asar.js:769:28)
return new winax.Object('dm.dmsoft');
^
Error: CreateInstance: dm.dmsoft 没有注册类
at getDM (D:\xm\KSB\app\node_modules\dm.dll\dist\index.js:11:16)
electron 程序打包后,无法正确注册动态库
只要导入了该包,就会包dll注册失败,
child_process.js:866
throw err;
^
Error: Command failed: regsvr32 E:\vvan\project\free area\autoLock\node_modules\dm.dll\dist\dm.dll /s
at checkExecSyncError (child_process.js:790:11)
at Object.execSync (child_process.js:863:15)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18) {
status: 3,
signal: null,
output: [ null, Buffer(0) [Uint8Array] [], Buffer(0) [Uint8Array] [] ],
pid: 21632,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(0) [Uint8Array] []
}
尝试过,将dll放入system32合64对应位置,手动执行regsvr32注册成功后,再运行,还是报同样的错
aweiu你好,如果我只是单纯的想在自己的app中实现类似按键精灵的功能,例如聚焦搜索框和输入字以及进入搜索结果列表页,再自动点击固定位置的那一条搜索结果,这样的程序怎么写,说一下我用的flutter开发可以交互JS,只是现在一点想法都没有,厚着脸皮希望指点一下,嘿嘿😁
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.