Skip to content

Commit 9651d26

Browse files
committed
Changed name to RobotJS. This is final!
1 parent 5e05785 commit 9651d26

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
autojs
1+
RobotJS
22
========
33

44
Node.js GUI Automation. Control the mouse, keyboard, and read the screen.
@@ -14,17 +14,17 @@ npm install autojs
1414
Get the mouse location and move it.
1515

1616
```JavaScript
17-
var autojs = require("autojs");
17+
var robot = require("robotjs");
1818

1919
//Get the mouse position, retuns an object with x and y.
20-
var mouse=autojs.getMousePos();
20+
var mouse=robot.getMousePos();
2121
console.log("Mouse is at x:" + mouse.x + " y:" + mouse.y);
2222

2323
//Move the mouse down by 100 pixels.
24-
autojs.moveMouse(mouse.x,mouse.y+100);
24+
robot.moveMouse(mouse.x,mouse.y+100);
2525

2626
//Left click!
27-
autojs.mouseClick();
27+
robot.mouseClick();
2828
```
2929
##Progress##
3030

binding.gyp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"targets": [
33
{
4-
"target_name": "autojs",
4+
"target_name": "robotjs",
55
"conditions": [
66
['OS == "mac"', {
77
'include_dirs': [
@@ -17,7 +17,7 @@
1717
}
1818
]
1919
],
20-
"sources": ["src/autojs.cc", "src/deadbeef_rand.c", "src/mouse.c", "src/screen.c"]
20+
"sources": ["src/robotjs.cc", "src/deadbeef_rand.c", "src/mouse.c", "src/screen.c"]
2121
}
2222
]
2323
}

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./build/Release/autojs.node');
1+
module.exports = require('./build/Release/robotjs.node');

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "autojs",
2+
"name": "robotjs",
33
"version": "0.0.1",
44
"description": "Node.js GUI Automation.",
55
"main": "index.js",
@@ -9,7 +9,7 @@
99
},
1010
"repository": {
1111
"type": "git",
12-
"url": "https://github.com/octalmage/autojs.git"
12+
"url": "https://github.com/octalmage/robotjs.git"
1313
},
1414
"keywords": [
1515
"Automation",
@@ -24,7 +24,7 @@
2424
"license": "GPL v2",
2525
"gypfile": true,
2626
"bugs": {
27-
"url": "https://github.com/octalmage/autojs/issues"
27+
"url": "https://github.com/octalmage/robotjs/issues"
2828
},
29-
"homepage": "https://github.com/octalmage/autojs"
29+
"homepage": "https://github.com/octalmage/robotjs"
3030
}

src/autojs.cc src/robotjs.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ void init(Handle<Object> target)
5757
target->Set(String::NewSymbol("mouseClick"),
5858
FunctionTemplate::New(mouseClick)->GetFunction());
5959
}
60-
NODE_MODULE(autojs, init)
60+
NODE_MODULE(robotjs, init)

0 commit comments

Comments
 (0)