Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Aug 12 15:13
    temberature commented #675
  • Jul 27 10:00
    uAliFurkanY synchronize #718
  • Jul 27 09:55
    uAliFurkanY commented #717
  • Jul 27 09:54
    uAliFurkanY opened #718
  • Jul 27 09:50
    uAliFurkanY commented #717
  • Jul 27 09:47
    uAliFurkanY commented #717
  • Jul 27 09:46
    uAliFurkanY opened #717
  • Jul 25 13:11
    wimurk commented #530
  • Jul 19 10:32
    fttx commented #530
  • Jul 15 13:56
    Rashid-iqba commented #2
  • Jul 15 13:56
    Rashid-iqba commented #2
  • Jul 15 09:50
    ALeeYaa commented #696
  • Jul 13 20:47
    VictorioBerra commented #28
  • Jul 05 11:40
    iloveyou1122 commented #210
  • Jun 27 06:08
    Edozie101 commented #672
  • Jun 26 11:42
    mrkefir4ik commented #464
  • Jun 19 16:42
    MistakingManx commented #712
  • Jun 17 01:20
    Travis jbmagination/robotjs@d282e7c (dependabot/npm_and_yarn/electron-1.8.8) errored (5)
  • Jun 17 01:20
  • Jun 10 00:40
    xetrics edited #716
Priyanshu SInha
Using protractor as my e2e test framework.
It does the necessary task but gives async timeout error, due to which my test fails
Teu Tio
Hey guys, how can i get the coordinates of an application. I need that to start the pointer in specific application, how can i do this?
Priyanshu SInha
Hi! Can anyone help me with how to drag application window?
I can try shortcut Alt+Space -> M -> Arrow Key, but that's quite inefficient IMO. I actually don't know how much shoudl arrow key be tapped.
Isaiah Odhner
If you only need Windows support, you could try https://www.npmjs.com/package/winctl
@_eitatio_twitter There's win.dimensions() @pk_sinha_1997_twitter and win.move/moveRelative
(disclaimer: haven't tried it myself)
Priyanshu SInha
Ok @1j01 I will look at it. Looks like this package is not maintained and no releases yet.
how to adjust screen capture png quality
Priyanshu SInha
Hi! Can we control web application through robot js?
Isaiah Odhner
@pk_sinha_1997_twitter I don't think that's within the scope of RobotJS, but you might be interested in TagUI, TamperMonkey (perhaps with an API thru HTTP with a webserver in Node.js if you need to control it from Node.js), or testing automation systems/platforms (of which there are quite a few)
Priyanshu SInha
@1j01 This will not fit in my needs. Anyways thanks
Isaiah Odhner
@pk_sinha_1997_twitter I listed three options. What are your needs? With tampermonkey and a
With a tampermonkey script in the browser, and a webserver in nodejs, you could definitely control a web application from a robot.js script (i.e. nodejs)
@octalmage I have one problem with robotjs keyTap feature , want to paste data on Mac OS X virtual machine but 'command'+v combination giving previous clipboard
Anthony Stabile
Has anyone gotten it working with ubuntu 18.04.1 on node 10.11?
Pranav Gupta
I am having an error installing windows build tools . It says some "older version of MSI is installed please uninstall first". I am using latest node and win10 64 bit .
Any help is appreciated­čÖé
Can Do
n-api has come
Maximus Blackbourne

Does anyone know of a good approach to selecting elements by automationID? I am also looking to interact with a button that requires a "hover-over" The application is a Windows WPF using Telerik.

I have been playing around with windows Automation but it is awfully cumbersome.

Maximus Blackbourne
Any way to invoke a button via the name?
Richard Lea
Hi, when would it be available to get the builds for node 10 +?
I faced a problem when using the mouse function in windows 10 --- i.e. robotjs.node is not a valid Win32 application.
Yomi Adenaike
Hi, i currently run Ubuntu on the latest version when trying to run robotjs it doesn't seem to work because of node version conflicts, i'm trying to use it with electron. I have tried everything and any help will be greatly appreciated.
Ivan Jeremic
Hello All! I have no idea if this could work but in an Electron I can create additional new BrowserWindows on button click. Is it possible with Robotjs to target this new created Window and automate it?
Saul Lopez
@octalmage Thanks you. For creating robotjs.
I needed this like a couple years ago and tried making it myself, but I couldn't find libraries or clues on how to start. I figured X11 was the way but didn't get far enough to figure it out. There was a file or 2 that keep popping out in C or C++ (probably were wiimote, GetCursorPos, and like really hard to find files). I bookmarked all the parts I could find but after some years it is sorta got lost in my bookmark mess (I will finally organize). Also, reading code can be overwhelming, especially when I don't know what I am looking for.
Can you give some insight how you built this? A youtube video would be cool.
X11 I have to guess is the big part in this. I notice VS code involved, what is that about?--I am guessing for C++ libraries for windows. (getcursorPos?)
Jesse Zhang
is this chat active?
Is it possible to hide the mouse using robotjs, not just change its position?
Wejdene Bannour
how to click on a specific botton using robotjs please
i try to use taiko 's click but i have faced some problems
Did anyone ever manage to solve moving mouse inside games aka locked cursor
Is there some way in robotjs (or another nodejs package) to (preferably temporarily) redirect/switch focus to a non focused application? e.g. allowing robotjs to pause/play media through a key shortcut that is not global and not currently focused. Another example would be to switch microphone on/off in a conference call.
note-wmctrl seems to do the switching for linux...
Is it possible to use the keyPress function using keycodes?
Bedirhan G├╝ne┼č
Is there anyone who can help?
Zack E
thank you for creating this.
@theleaks you should download python and set an environment variable for it
you can search youtube how to do that, e.g. https://www.youtube.com/watch?v=Y2q_b4ugPWk
@yomiAdenaike01 ive had the same issue, this was what i did to solve it:
  1. npm rebuild
  2. ./node_modules/.bin/electron-rebuild
Is there a way to determine if a click was made by robotjs or by a person?
Hello, are there any specific instructions for Windows?
i'm trying to install this but the npm command gives an error saying i need to install visual studio
Oh i see, there are no prebuilt binaries
alright so i built the module for electron on windows, now how do i install it into my project?
so, i saw on the git repo that this was made out of a love for AHK, is there an easy way to convert existing ahk to this?
Davide Del Grande
on my 4K monitor, getScreenSize() returns 2560x1440 :(