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

Conditionals #25

Closed emiln closed 9 years ago

emiln commented 9 years ago

It would be great to have simple if-then-else conditionals in the scripting language. The first really useful condition could be something along the lines of:

[:when [:pointer-near 500 500 50]
 [:click]]

This would process the body if the mouse pointer is within 50 pixels of the point [500, 500]. There should be similarl functionality for :if, but taking both and if and an else branch.