nullxx / electron-active-window Goto Github PK
View Code? Open in Web Editor NEWThis project forked from yvesh/active-windows
C++ N-API module to get information on the currently selected window on Linux, MacOS and Windows.
This project forked from yvesh/active-windows
C++ N-API module to get information on the currently selected window on Linux, MacOS and Windows.
The type definitions for keys have a few incorrect entries on my machine (windows 10).
// Enter: 28,
Enter: 3612,
// Backquote: 41,
Backquote: 125,
Above you'll find the expected code's, versus the actual output when I log the event.
I can't see where the types are actually defined, otherwise I would open a PR.
Hi Nullxx! Thanks for the great library. Do you think it is possible to support MacOS versions below 10.15?
Thanks!
Hi, i'd like to check if minecraft is open. How can i do that?
Issues:
make: Entering directory '/home/ahmadgoraya/Documents/taskick-electron/node_modules/electron-active-window/build'
CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
AR(target) Release/obj.target/../node-addon-api/src/nothing.a
COPY Release/nothing.a
CXX(target) Release/obj.target/wm/cppsrc/main.o
CXX(target) Release/obj.target/wm/cppsrc/linux/windowlinux.o
../cppsrc/linux/windowlinux.cpp:6:10: fatal error: X11/extensions/scrnsaver.h: No such file or directory
6 | #include <X11/extensions/scrnsaver.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [wm.target.mk:125: Release/obj.target/wm/cppsrc/linux/windowlinux.o] Error 1
make: Leaving directory '/home/ahmadgoraya/Documents/taskick-electron/node_modules/electron-active-window/build'
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /tmp/.mount_TasKicJJznfd/resources/app.asar.unpacked/node_modules/electron-active-window/build/Release/wm.node: invalid ELF header
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/tmp/.mount_TasKicJJznfd/resources/app.asar/node_modules/electron-active-window/index.js:1:23)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
Environment:
Really appreciate your open source work @nullxx ๐. This is a question rather than an issue.
I'm trying to understand why to consider this module over the active-win library? It seems more popular and supports some extra fields like browser URL. It's great that both exist but are there instances when this library makes more sense than active-win
.
Use active-win instead.
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.