Skip to content

Port of python's PyMouse. Cross-platform simulation of mouse events.

License

Notifications You must be signed in to change notification settings

kosmaks/rumouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RuMouse

Gem Version

This is port of PyMouse to ruby. Cross-platform library to simulate mouse events.

Installation

Simply run:

$ gem install rumouse

or add to your Gemfile:

gem 'rumouse'

Requirements

On Linux, you must have libXtst, e.g., apt install libxtst-dev.

Usage

require 'rumouse'

mouse = RuMouse.new

# click at 10x10
mouse.click 10, 10

# move mouse to 100x100
mouse.move 100, 100

# press to drag at 10x10
mouse.press 10, 10

# release to drop at 100x100
mouse.release 100, 100

# get current position
puts mouse.position

# get screen size
puts mouse.screen_size 

About

Port of python's PyMouse. Cross-platform simulation of mouse events.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •