All Projects → DankDumpster → Mouse Rs

DankDumpster / Mouse Rs

Licence: gpl-3.0
Rust library to control the mouse

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Mouse Rs

Neatinput
A .NET standard project which aims to make keyboard and mouse input monitoring easy on Windows and eventually Linux.
Stars: ✭ 89 (+270.83%)
Mutual labels:  mouse, library
Crab
JavaScript library for building user interfaces with Custom Elements, Shadow DOM and React like API
Stars: ✭ 22 (-8.33%)
Mutual labels:  library
Elongation Preview
ElongationPreview is an elegant UI push-pop style view controller. iOS library made by @Ramotion
Stars: ✭ 888 (+3600%)
Mutual labels:  library
B24
Bitrix24 Client Library
Stars: ✭ 18 (-25%)
Mutual labels:  library
Galgo Ios
When you want your logs to be displayed on screen
Stars: ✭ 16 (-33.33%)
Mutual labels:  library
Mondocks
An alternative way to interact with MongoDB databases from F# that allows you to use mongo-idiomatic constructs
Stars: ✭ 20 (-16.67%)
Mutual labels:  library
Storagedb
MongoDB-like API for HTML5 Storage (localStorage and sessionStorage)
Stars: ✭ 16 (-33.33%)
Mutual labels:  library
Preppy
A simple and lightweight tool for preparing the publish of NPM packages.
Stars: ✭ 23 (-4.17%)
Mutual labels:  library
Itext7
iText 7 for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.
Stars: ✭ 913 (+3704.17%)
Mutual labels:  library
Coord Rs
[deprecated] A simple, ergonomic vector mathematics crate for Rust
Stars: ✭ 18 (-25%)
Mutual labels:  library
Styledecorator
Easy string decoration with styles
Stars: ✭ 17 (-29.17%)
Mutual labels:  library
Minifuture
A monadic Future design pattern implementation in Swift
Stars: ✭ 16 (-33.33%)
Mutual labels:  library
Xtoolkit.whitelabel
Modular MVVM framework for fast creating powerful cross-platform applications with Xamarin.
Stars: ✭ 22 (-8.33%)
Mutual labels:  library
Shpref Library
💾 Android Kotlin library. Shared preferences wrapper. (2020)
Stars: ✭ 16 (-33.33%)
Mutual labels:  library
Clygments
🎨 Code highlighting using Pygments in Clojure
Stars: ✭ 22 (-8.33%)
Mutual labels:  library
Matter
Material Design Components in Pure CSS. Materializing HTML at just one class per component 🍰
Stars: ✭ 888 (+3600%)
Mutual labels:  library
Multicolortextview
Stars: ✭ 17 (-29.17%)
Mutual labels:  library
Yubihsm Go
A Go client for the yubihsm2 binary protocol and connector service
Stars: ✭ 19 (-20.83%)
Mutual labels:  library
Blipkit
C library for creating the beautiful sound of old sound chips
Stars: ✭ 23 (-4.17%)
Mutual labels:  library
Bannerlib
A library of commonly used tools and mod-collision avoidance functionality.
Stars: ✭ 23 (-4.17%)
Mutual labels:  library

Rust Docs Crates.io

Mouse-rs

Mouse-rs is a rust library for controlling your mouse from a rust program, without having to go into your kernel yourself.

This project was loosely based on the python mouse library. Currently it supports macos, windows and linux! If you need any other OS added please open an issue

Installation

Add mouse-rs to your cargo.toml

[dependencies]
mouse-rs = "0.4"

Example

This is a simple example that moves your mouse to a position on screen and presses the left button.

use mouse_rs::{types::keys::Keys, Mouse};

fn move_and_press() {
    let mouse = Mouse::new();
    mouse.move_to(500, 500).expect("Unable to move mouse");
    mouse.press(&Keys::RIGHT).expect("Unable to press button");
    mouse.release(&Keys::RIGHT).expect("Unable to release button");
}

Usage

For more information please visit the docs

Linux disclaimer

If you're running into problems building on linux you need to install libxdo-dev.

Debian-based

sudo apt-get install -y libxdo-dev

Arch

sudo pacman -Sy xdotool

Fedora

sudo dnf install libX11-devel libxdo-devel

Gentoo

sudo emerge xdotool
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].