emiln / cljck

An OS-agnostic Clojure library for automating keyboard and mouse actions.
GNU General Public License v3.0
5 stars 0 forks source link

Add "while holding" command #35

Closed emiln closed 8 years ago

emiln commented 8 years ago

It would be nice to be able to write scripts like:

(while-holding "Shift"
  (click))

I suggest the first argument for while-holding would be the same type as the existing key press commands.

emiln commented 8 years ago

The while in while-holding didn't sit well with me. It should be just as clear with

(holding "SHIFT"
  (click))