hiikion / mouse

programmatic control of the mouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mouse

This library allows you to programmatically control the mouse.

Installing

nimble install mouse

installing deps on linux

arch: pacman -S xdotool
ubuntu/debian: apt-get install xdotool
fedora: dnf install xdotool
openSUSE: zypper install xdotool
other: brew install xdotool

installing dependencies for macos

brew install xdotool

Suported platforms

Platform Is supported
Windows ✔️
Linux ✔️
Mac ✔️

Examples

Universal

import mouse

click(Left) 
press(Left)
release(Left)
move(30, 30)

while true:
    var position = getPos()
    
    echo fmt"position: {position}"

Windows-only

import mouse

scroll(5)

About

programmatic control of the mouse

License:Mozilla Public License 2.0


Languages

Language:Nim 100.0%