Comments (9)
I just tried using nvm
and with 0.10.39
, as well as with 0.10.31
, I get a different error:
Error: Module did not self-register.
from robotjs.
It's because electron does not use standard node. Check out how you can rebuild the modules http://electron.atom.io/docs/v0.28.0/tutorial/using-native-node-modules/
I am having a similar problem with robotjs
. It is working perfectly when I run it with electron app_dir
, but when I package it and run as an app, robotjs
just does not execute commands anymore. No errors, nothing. Where should I debug?
from robotjs.
@hugohil any luck figuring it out? :)
from robotjs.
Hey sorry guys! I've been busy with work, and focusing on the RobotJS Windows build. I'm an nw.js guy also, so unfortunately I may not get to this for a while.
from robotjs.
So I did some work on ScreenCat and RobotJS worked fine! I used the apm install
method.
@hugohil what command are you using to build/install?
from robotjs.
I'm really sorry I didn't reply, I was busy at the time and this got out of my mind after :/
I just tested and thanks to your fix, it now works perfectly ! 👍
Also, thank @Nedomas for your suggestions about rebuilding modules.
I'll soon test the packaging issue and close the issue if it worked :)
from robotjs.
Awesome! Sounds good!
from robotjs.
I've got this error on ./node_modules/.bin/electron-rebuild
../node_modules/nan/nan.h:779:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
Anyone encountered something similar? (Ubuntu 14.04, node v0.10.37)
from robotjs.
I'm going to close this, if anyone still needs help please open a new issue!
from robotjs.
Related Issues (20)
- How to make screen of visible window on macos? HOT 2
- git clone npm i why error HOT 2
- All key events continuously hold down keys on Windows only. HOT 1
- Does not work on windows 11 HOT 1
- Using the typeString() method does not let you find the name of a file.
- Installing for nw.js - "A dynamic link library (DLL) initialization routine failed."
- Robotjs doesn't work with Electron, current time 2023.11.27 HOT 3
- or
- In the multi-instance tool, RobotJS is not working. There are no issues with reading properties, but moving the mouse or pressing the keyboard is not functioning correctly.
- Is there anyway to use this library in Nextjs app
- I cannot install robotjs HOT 7
- UTF-8 client type string HOT 1
- Focused program does not react to keyup event
- Mouse is not moving when using Remote Desktop Connection with Windows HOT 1
- Badges on README.md are broken
- Error, Help! HOT 1
- When using typeString() to output consecutive identical unicode characters, only the first character will be output
- I'm reading the documentation thoroughly. It does not capture mouse click?
- Electron combined with robotjs on Win10 and Win11 systems: scrollMouse method does not work HOT 3
- keyTap('right_alt') actually send left alt instead of right alt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotjs.