From 9651d2601f53587ca97b289193ae3d23c6a46ff7 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Mon, 1 Sep 2014 11:57:43 -0500 Subject: [PATCH] Changed name to RobotJS. This is final! --- README.md | 10 +++++----- binding.gyp | 4 ++-- index.js | 2 +- package.json | 8 ++++---- src/{autojs.cc => robotjs.cc} | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) rename src/{autojs.cc => robotjs.cc} (98%) diff --git a/README.md b/README.md index fe808997..78603739 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -autojs +RobotJS ======== Node.js GUI Automation. Control the mouse, keyboard, and read the screen. @@ -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## diff --git a/binding.gyp b/binding.gyp index 7fc62184..d539e8b4 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,7 +1,7 @@ { "targets": [ { - "target_name": "autojs", + "target_name": "robotjs", "conditions": [ ['OS == "mac"', { 'include_dirs': [ @@ -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"] } ] } diff --git a/index.js b/index.js index 1a9dde10..e761fb6b 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -module.exports = require('./build/Release/autojs.node'); +module.exports = require('./build/Release/robotjs.node'); diff --git a/package.json b/package.json index 4f2e5375..c445c3b1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "autojs", + "name": "robotjs", "version": "0.0.1", "description": "Node.js GUI Automation.", "main": "index.js", @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/octalmage/autojs.git" + "url": "https://github.com/octalmage/robotjs.git" }, "keywords": [ "Automation", @@ -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" } diff --git a/src/autojs.cc b/src/robotjs.cc similarity index 98% rename from src/autojs.cc rename to src/robotjs.cc index 5880feb9..2c1a5a5d 100644 --- a/src/autojs.cc +++ b/src/robotjs.cc @@ -57,4 +57,4 @@ void init(Handle target) target->Set(String::NewSymbol("mouseClick"), FunctionTemplate::New(mouseClick)->GetFunction()); } -NODE_MODULE(autojs, init) +NODE_MODULE(robotjs, init)