npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

automouse

v1.13.0

Published

Mouse CLI

Downloads

7

Readme

Cross-platform automation CLI. Control your mouse and keyboard on Windows, Mac, or Linux. Great for simple GUI testing and automation.

Installation

Must have npm, python2.

Windows prereqs:

  • Python v2.
  • windows-build-tools npm install --global --production windows-build-tools

Linux prereqs:

  • Python v2.
  • make.
  • A C/C++ compiler like GCC.
  • libxtst-dev and libpng++-dev (sudo apt-get install libxtst-dev libpng++-dev).

Then run:

npm install -g automouse

If you get errors with node-gyp during installation, make sure you have python2 installed and run

npm install -g automouse --python="path/to/python2"

If you continue to encounter issues, see installation/build instructions for robotjs

Usage

usage: automouse [command]

Commands:
interactive|i - starts interactive mode
version - displays the current version.
file|f [path] - runs mouse commands from a file.
execute|e [mouse args] - runs arguments directly.

Mouse Commands

Mouse commands are used to control the mouse. Commands are separated by spaces. Commands are case insensitive. Command arguments are passed with colons example: sleep:1000

RIGHT|R - set direction to right.
LEFT|L - set direction to left.
UP|U - set direction to up.
DOWN|D - set direction to down.
LEFT-CLICK|CLICK|LC|C - click the left mouse button.
RIGHT-CLICK|RC - click the right mouse button.
MOUSE-DOWN|MD - toggle the mouse down.
MOUSE-UP|MU - toggle the mouse up.
MOUSE-DOWN-RIGHT|MDR - toggle the right mouse button down.
MOUSE-UP-RIGHT|MUR - toggle the right mouse button up.
[SLEEP|S]:duration - waits the given amount of milliseconds.
[MOVE|M]:x,y - moves the mouse to the given x and y coordinates.
[KEY|K]:key - presses the given key.
PRINT|P - print the current mouse location.
[PRINT-COLOR|PC]:x,y - print the color at the given x and y locations defaults to the current mouse location.
[integer] - move the mouse in the current direction by this amount. example: "right 50" == move the mouse 50 pixels to the right.

Examples

automouse i
Enter commands separated by spaces:
md r 50 d 50 l 50 u 50 r 75 d 75 l 75 u 75 r 100 d 100 l 100 u 100 mu

example

Open a drawing app and run the following with the cursor over the canvas.

automouse f example\draw.txt

or

automouse e md r 50 d 50 l 50 u 50 r 75 d 75 l 75 u 75 r 100 d 100 l 100 u 100 mu