Skip to content

Commit

Permalink
Changed name to RobotJS. This is final!
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Sep 1, 2014
1 parent 5e05785 commit 9651d26
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
autojs
RobotJS
========

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

```JavaScript
var autojs = require("autojs");
var robot = require("robotjs");

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

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

//Left click!
autojs.mouseClick();
robot.mouseClick();
```
##Progress##

Expand Down
4 changes: 2 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"targets": [
{
"target_name": "autojs",
"target_name": "robotjs",
"conditions": [
['OS == "mac"', {
'include_dirs': [
Expand All @@ -17,7 +17,7 @@
}
]
],
"sources": ["src/autojs.cc", "src/deadbeef_rand.c", "src/mouse.c", "src/screen.c"]
"sources": ["src/robotjs.cc", "src/deadbeef_rand.c", "src/mouse.c", "src/screen.c"]
}
]
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./build/Release/autojs.node');
module.exports = require('./build/Release/robotjs.node');
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "autojs",
"name": "robotjs",
"version": "0.0.1",
"description": "Node.js GUI Automation.",
"main": "index.js",
Expand All @@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/octalmage/autojs.git"
"url": "https://github.com/octalmage/robotjs.git"
},
"keywords": [
"Automation",
Expand All @@ -24,7 +24,7 @@
"license": "GPL v2",
"gypfile": true,
"bugs": {
"url": "https://github.com/octalmage/autojs/issues"
"url": "https://github.com/octalmage/robotjs/issues"
},
"homepage": "https://github.com/octalmage/autojs"
"homepage": "https://github.com/octalmage/robotjs"
}
2 changes: 1 addition & 1 deletion src/autojs.cc → src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ void init(Handle<Object> target)
target->Set(String::NewSymbol("mouseClick"),
FunctionTemplate::New(mouseClick)->GetFunction());
}
NODE_MODULE(autojs, init)
NODE_MODULE(robotjs, init)

0 comments on commit 9651d26

Please sign in to comment.