mousecpp
v1.0.8
Published
Control your mouse as you want
Downloads
3
Maintainers
Readme
MouseCpp
Allow you to controll your mouse as you want.
Installation
Use the package manager npm or yarn to install Mouse.
yarn add mousecpp
npm install mousecpp
Usage
const Mouse = require("mousecpp");
//Move the mouse
Mouse.Move(100,200);
//Click Mouse Left Button
Mouse.ClickLeft();
//Click Mouse Middle Button
Mouse.ClickMiddle();
//Click Mouse Right Button
Mouse.ClickRight();
//Get current mouse cordenates x and y
const position = Mouse.GetCordinates();
console.log(`x: ${position.x}, y:${position.y}`);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.