kepmon

0.1.3 • Public • Published

Kepmon

Kepmon is a napi module providing pointer access and control.

In the earliest version only the Windows platfrom is currently supported!

Getting Started

Installation

npm i kepmon

Usage

import kepmon from ("kepmon")

const position = kepmon.getPointerPosition()
const boundary = kepmon.getPointerBoundary()
const newXPos = boundary.xLimit < position.x + 50 ? 0 : position.x + 50  
kepmon.setPointerPosition(newXPos, position.y)

For more information check the keepMeOnScript.ts.

Extending the library

First of all you've to install node-gyp.

node-gyp is a tool for building native Addon modules for Node.js, using the same infrastructure as Node itself. With node-gyp, you can compile your C/C++ code into a binary that can be loaded by Node.js and used as if it were any other native module.

Prerequisites

Before you can use node-gyp, you need to make sure you have the following installed:

  • Node.js and npm
  • Python (version 2.x)
  • Visual Studio Build Tools (for Windows only) or Xcode (for MacOS only)
  • The Windows SDK (for Windows only)
  • Installing node-gyp

You can install node-gyp globally with the following command:

npm install -g node-gyp

Once you have node-gyp installed, you can generate the necessary code with the code below

node-gyp configure node-gyp build

and than

node-gyp rebuild

For further instruction on how to use node-gyp and napi properly you can follow the (documentation)[https://nodejs.org/api/n-api.html]

Feel free to make any suggestions or creating pull requests in order to provide a multi-platform support or further extensions.

License

See the LICENSE file for licensing information.

Package Sidebar

Install

npm i kepmon

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

29.3 kB

Total Files

31

Last publish

Collaborators

  • ahmet.cavus