We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f250355 commit ba5cb80Copy full SHA for ba5cb80
README.md
@@ -34,6 +34,30 @@ robot.moveMouse(mouse.x,mouse.y+100);
34
robot.mouseClick();
35
```
36
37
+Type "Hello World".
38
+
39
+```JavaScript
40
+var robot = require("robotjs");
41
42
+//Type "Hello Worl".
43
+robot.typeString("Hello Worl");
44
45
+//Type "d".
46
+robot.keyTap("d");
47
+```
48
+Get pixel color under the mouse.
49
50
51
52
53
+//Get mouse position.
54
+var mouse=robot.getMousePos();
55
56
+//Get pixel color in hex format.
57
+var hex = robot.getPixelColor(mouse.x, mouse.y);
58
+console.log("#" + hex + " at x:" + mouse.x + " y:" + mouse.y);
59
60
61
## Building
62
63
RobotJS uses [node-gyp](https://github.com/TooTallNate/node-gyp) for building.
0 commit comments