Skip to content

Simple program for automating keyboard presses and mouse moves/clicks written in NodeJS

Notifications You must be signed in to change notification settings

ScriptChip/Automata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Automata

Simple program for automating keyboard presses and mouse moves/clicks written in NodeJS

Installation

  1. Download this respository
  2. Enter the main folder
  3. Open console
  4. Start program using command npm run start

Programs

You can create your own program or download others. To do so, enter programs folder Here you canadd your programs

Creating your own program

  1. Create new file in programs folder with JS extension
  2. Paste this string in it:
module.exports.start = function(listner, controller) {
	
	listner.on("mousemove", event => {
		console.log(event);
	});
	
	listner.on("keydown", event => {
		console.log(event);
	});
	
	listner.start();
}

module.exports.config = {
	name: 'myfirst'
}
  1. Start program, and run program named myfirst

Creating your own program - Functions

listner is Object for listning for changes. It emits two events: mmousemove and keydown
controller is Object that's job is controlling mouse and keyboard:
controller.keyTap("f1") - Taps the F1 key once
controller.typeString("Hello World!") - Writes the inputed String
controller.moveMouse(x, y) - Moves the mouse to selected X and Y possition
controller.getMousePos() - Return current possiotn of the mouse
controller.getPixelColor(x, y) - Return color on selected possition
controller.getScreenSize - Return size of the screen
controller.screen.capture - Return Bitmap of screen

About

Simple program for automating keyboard presses and mouse moves/clicks written in NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published