Skip to main content

Python mouse and keyboard input control in a simple way.

Project description

cornelius

Cornelius allows you to control mouse and keyboard inputs in a simple way.

Currently only supports Windows.

Usage

Install the PyPI package

pip install cornelius

or clone the repository

git clone https://github.com/manucabral/cornelius.git

Example

Using cursor module

from cornelius import Cursor

mouse = Cursor()
mouse.set(500, 500)
mouse.press(1) # left click

Using keyboard module

from cornelius import Keyboard

keyboard = Keyboard()
keyboard.press('a')
keyboard.release('a')

You can see more examples here

Planned features

  • Mouse scrolling
  • Detect multiple clicks
  • Wait for a key/mouse input
  • Rewrite modules using SendInput function

Limitations

Currently cornelius uses the win32 events functions so does not work in some applications or video games.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cornelius-0.0.2.tar.gz (15.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page