Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

lepikevents

Package Overview
Dependencies
1
Maintainers
1
Versions
41
Issues
File Explorer

Advanced tools

lepikevents

Global mouse and keyboard events Listener

    1.5.4latest

Version published
Maintainers
1
Yearly downloads
2,639

Weekly downloads

Readme

Source

Lepik Events

An event based, Global Keyboard and Mouse listener.

NPM

Lepik Events is only part from LepikJS. Definitely try it out!

Visit LepikJS's website.

Installing

npm install lepikevents

Coding

// Require lepikEvents const lepikEvents = require('lepikevents'); lepikEvents.events.on('keyPress', (data) => { // Returns key pressed as String console.log(data); // e||esc||space||backspace ... }); lepikEvents.events.on('keyRelease', (data) => { // Returns key released as String console.log(data); // e||esc||space||backspace ... }); lepikEvents.events.on('mouseClick', (data) => { // Returns array containing mouse position x, y and button clicked console.log(data); // [361, 235, *1] // *1 for left, 2 for right, 3 for middle }); lepikEvents.events.on('mouseDoubleClick', (data) => { // Returns array containing mouse position x, y and button double-clicked console.log(data); // [361, 235, *1] // *1 for left, 2 for right, 3 for middle });

All events

Curently there are 4 events in total, mouseClick, mouseDoubleClick, keyPress and keyRelease. I will try to implement more in future.

Requirements

Lepik Events uses Python keyboard and Python mouse which runs on Python.

If your are on Windows, then you don't even have to have it installed, cause thanks to Pyinstaller, the code is compiled into executable.

If you are not using windows, you need to have atleast Python3 installed. It's better to have atleast node13 but not required.

License

The code is licensed under the MIT license (http://opensource.org/licenses/MIT). See LICENSE file.

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc