Coder Social home page Coder Social logo

clicker's Introduction

clicker

Linux+X Windows automatic keyboard and mouse clicker

clicker waits in a loop until numlock is active, at which point it will repeatedly press the specified key(s) at the specified interval(s) until suspended (by toggling numlock) or terminated (<ctrl+c> will do).

There's usually a short delay, up to 1 second, after pressing numlock before the clicking stops/starts. This is because numlock is only polled once per second, in order to minimize wakeups and be battery friendly while not clicking.

usage

Running clicker with no additional options causes it to click the primary mouse button ~20/sec while numlock is enabled.

To disable mouse clicking entirely, pass the -c 0 option.

  clicker [OPTION?] - sends input signals to currently active window in an X session

Help Options:
  -h, --help                      Show help options

Application Options:
  -x, --x11-display=NAME          The X11 display to send the input to. Default: DISPLAY env var
  -d, --delay=N                   Delay in msecs before sending any input events. Default: 250
  -m, --mouseclick=N              Click mouse button N at regular intervals. Default: 1
  -c, --mouseclick-interval=N     Delay in msecs between mouse button clicks. Default: 50, 0: disable
  -k, --keypress=KEY              Press key with the X11 name of KEY at regular intervals. Default: none
  -p, --keypress-interval=N       Delay in msecs between key presses. Default: 1000, 0: disable

how to build

Prerequisites:

  • gcc
  • pkg-config
  • the following pkg-config packages:
    • x11 (libx11-dev)
    • xtst (libxtst-dev)
    • xext (libxext-dev)
    • glib-2.0 (libglib2.0-dev)

Run make clicker.release

809e5b6 (Minor README reformatting)

Copy clicker.release anywhere you want - ~/, /usr/local/bin, etc. You'll probably want to rename it as just clicker, though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.