sylveon / windows-swca Goto Github PK
View Code? Open in Web Editor NEWJavaScript bindings for the undocumented SetWindowCompositionAttribute API
Home Page: https://www.npmjs.com/package/windows-swca
License: MIT License
JavaScript bindings for the undocumented SetWindowCompositionAttribute API
Home Page: https://www.npmjs.com/package/windows-swca
License: MIT License
App threw an error during load
Error: A dynamic link library (DLL) initialization routine failed.
\\?\D:\Electron-App\simpadPrinterTester\app\node_modules\windows-swca\build\Release\swca.node
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:740:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (D:\Electron-App\simpadPrinterTester\app\node_modules\windows-swca\dist\index.js:3:16)
at Object.<anonymous> (D:\Electron-App\simpadPrinterTester\app\node_modules\windows-swca\dist\index.js:66:3)
With
npm i windows-swca
and
const windows_swca = require('windows-swca')
OS
windows 10 17763.316
python 2.7.14
node 8.9.1
electron 3.1.2, also in 2.0.16
How to require it in my electron browser window???
i'm trying to run this but i get this error:
App threw an error during load
Error: The module '\?\C:\Users\hamid\Desktop\DualTouch\node_modules\windows-swca\build\Release\swca.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 72. This version of Node.js requires
NODE_MODULE_VERSION 80. Please try re-compiling or re-installing
the module (for instance, usingnpm rebuild
ornpm install
).
at process.func [as dlopen] (electron/js2c/asar.js:140:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1034:18)
at Object.func [as .node] (electron/js2c/asar.js:140:31)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (C:\Users\hamid\Desktop\DualTouch\node_modules\windows-swca\dist\index.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:967:30)
function createWindow() {
/**
* Initial window options
*/
mainWindow = new BrowserWindow({
width: 1400,
height: 900,
minWidth: 768,
webPreferences: {
nodeIntegration: true
},
frame: false,
backgroundColor: "#00000000"
});
mainWindow.loadURL(winURL);
mainWindow.on("closed", () => {
mainWindow = null;
});
SetWindowCompositionAttribute(
mainWindow.getNativeWindowHandle(),
ACCENT_STATE.ACCENT_ENABLE_ACRYLICBLURBEHIND,
0x10000000
);
}
this works on electron but electron-vue is another story.
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.