Giter Club home page Giter Club logo

clicker's Introduction

NOTE: Karabiner-Elements now allows you to directly assign mouse buttons, so it might be better to use it instead of Clicker.

This small program listens to keyboard events and translates presses and releases of a specific key to presses and releases of a mouse button. It has been tested on OS X 10.11 and macOS 10.12, but it should work from OS X 10.6 onwards.

Grab a release

At the moment, Clicker is very simple, works in the background (with minimal CPU usage), and has no user interface. To exit it, please use Activity Monitor.

I wrote Clicker to be able to use the CapsLock key as a left mouse button on macOS Sierra. With previous operating systems, I'd use Karabiner with Seil, but they don't work with macOS Sierra. Sierra users must use Karabiner-Elements, but there is no support for translating key presses to mouse button presses at the moment, so I wrote this part.

How to use CapsLock as a left mouse button on macOS Sierra

First, install Karabiner-Elements and launch it. Setup a Simple Modification from key caps_lock to key application.

Then, go to the Keyboard section of the System Preferences app, click the Modifier keys… on the bottom right, and set the Caps Lock key to No Action.

At this point, any press of the CapsLock key will result in writing an invisible character corresponding to the PC Application key, which isn't really useful. You'll need Clicker to turn virtual presses of the PC Application key to virtual mouse clicks.

Launch the Clicker application. On the first launch, it'll probably ask that you grant it accessibility features (Security section of the System Preferences app, Confidentiality pane, Accessibility subsection), and just quit. Once you have done that, launch Clicker again and you're done.

To always enable Clicker, I added it in the Login Items pane of the System Preferences app (section Users and groups).

Changing to another key or to another mouse button

Clicker could work with another key and another mouse button, but for now, you'll need to grab the source code and to recompile it with your settings (see comments near the beginning of method -[ClickerController init], in ClickerController.m).

Feel free to send issues and requests if you'd like this tool to support your use case.

clicker's People

Contributors

oin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clicker's Issues

Strange Behavior in Photoshop

Jonathan - Thanks for creating Clicker - great solution / workaround for the lack of mouse support in Karabiner-Elements. Seems to work great in all applications - except Photoshop. Currently using CS6.

The behavior is pretty hard to describe, it's almost as if the button on the mouse were to get "stuck down" and it is waiting for me to press the key again to release. It does something - like completing a line - but then appears to become "stuck down" again. Not sure if this makes sense - I've been trying to figure out what exactly it is doing and how to explain it better for a few days now.

Let me know if you have any insight.

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.