Questions tagged [robotjs]

RobotJS is a desktop automation library

RobotJS is a desktop automation library with support for Mac, Windows and Linux.

40 questions
0
votes
1 answer

How do I cause keyboard actions with NodeJS (other than RobotJS)?

Like this question, I am trying to figure out how to simulate certain key commands with NodeJS. For example, I'd like to programmatically cause "ctrl+C" (copying highlighted text) to occur, no matter what window the user is in. A common answer to…
SeanRtS
  • 1,005
  • 1
  • 13
  • 31
0
votes
0 answers

How to write persian characters with robotjs?

I am developing a chrome extension with nodejs. I used robotjs module to write some text in an input tag. It writes English characters well but when I want to write persian characters, it shows special character for each character in my string in…
MeirDayan
  • 620
  • 5
  • 20
0
votes
1 answer

Segmentation fault with robot.js

I am getting this error with https://npm.im/robotjs [1] 76506 segmentation fault node index.js Any ideas on how to fix this? Thanks.
yogurtsyum
  • 348
  • 1
  • 2
  • 17
0
votes
1 answer

Cannot find module robotjs

I am using robotjs for remote control in angular electron app, it loads up fine in development mode(npm run electron) but when I do packaging (.exe) using electron packager then after generating exe file I get "Cannot find module robotjs" upon…
Shoib Mohammed A
  • 298
  • 4
  • 12
0
votes
0 answers

electronjs NODE_MODULE_VERSION error and rebuild command not fixing the issue

am trying to use robotjs in an electron(v5.0.5) application when i run the application , i get the error below , i used electron-rebuild command : ./node_modules/.bin/electron-rebuild and used npm rebuild as well and i still getting the same…
Hasan Al-Natour
  • 1,936
  • 2
  • 14
  • 22
0
votes
0 answers

Robotjs on Electron typeString() is not working as expected

https://github.com/octalmage/robotjs/issues/472 The annoying this with this issue is that it is working for my colleague on their machine, but it isn't working for me and we're at a loss for how to debug. Expected Behavior The expectation is that…
islalobo
  • 617
  • 2
  • 8
  • 22
0
votes
1 answer

socketjs: request value from server

I am trying to request value from server through socketjs. Here is client.js function onClick({clientX, clientY}) { console.log("====== #click: "+clickNo); clickNo++; var srcWidth, srcHeight, mouseClickX, mouseClickY; …
Shaon Debnath
  • 95
  • 2
  • 10
0
votes
1 answer

How to upload files in file dialog in protractor test, not using robotjs?

I'm using this code for browse (upload) files in dialog: var uploadPathLogo = "path to file"; var uploadLogo = function() { browser.driver.sleep(3000).then(function() { robot.typeStringDelayed(uploadPathLogo, 23000); …
Sanja Paskova
  • 1,110
  • 8
  • 15
0
votes
1 answer

I cannot install the Robotjs library in Node.js

I cannot install Robotjs in Node. When I try to install the command: npm install robot-js, the screen shows this error: Error: robot-js binaries failed to install. You will need to install them manually. When I put the command: npm…
Guilherme
  • 3
  • 7
-1
votes
2 answers

Exporting Javascript variable into React component

I am trying to use Robot.js inside of a React.js application. I have Robot.js installed and can run it to get the results in a separate file. I cannot find a way to run Robot.js inside a React component because I get an error "robot.getMousePos()"…
user3109127
  • 49
  • 1
  • 7
1 2
3