Skip to content

Releases: emiln/cljck

Scroll wheel

20 Sep 20:12
Compare
Choose a tag to compare
Scroll wheel Pre-release
Pre-release

It's now possible to simulate scrolling the mouse wheel. Here are a few examples:

Command Description
[:scroll-down] Scrolls 1 "tick" of the wheel in the downwards direction.
[:scroll-down 10] Scrolls 10 "ticks" of the wheel in the downwards direction.
[:scroll-up] Scrolls 1 "tick" of the wheel in the upwards direction.
[:scroll-up 5] Scrolls 5 "ticks" of the wheel in the upwards direction.

Conditionals!

17 Sep 21:10
Compare
Choose a tag to compare
Conditionals! Pre-release
Pre-release

There's now the wiring in place for conditionals in the scripting language. There are currently two ways to branch:

[:if condition
 then-branch
 else-branch]

and

[:when condition
 & body]

Here's a simple example using the currently only actual boolean expression:

[:when [:pointer-near 500 300 10]
 [:click]
 [:wait 25]]

This will click and wait if the mouse pointer is no further than 10 pixels in any dimension from the point [500, 300].

Pre-release 0.4.0

11 Sep 15:33
Compare
Choose a tag to compare
Pre-release 0.4.0 Pre-release
Pre-release

This small release adds the ability to pass several script files on the command line when starting Cljck.

java -jar cljck-0.4.0.jar one.edn two.edn three.edn will launch all three scripts in parallel, interleaving their commands.

Pre-release 0.3.1

10 Sep 17:58
Compare
Choose a tag to compare
Pre-release 0.3.1 Pre-release
Pre-release

This is a small bug fix release and attempt to fix the issues with the "kill switch" when pressing Escape. It should now hopefully work - even on Windows.

I've also switched to "Ahead of Time" compiling all namespaces. It may result in slightly faster boot times.

Pre-release 0.3.0

05 Sep 09:37
Compare
Choose a tag to compare
Pre-release 0.3.0 Pre-release
Pre-release

This small release adds the ability to send key strokes. The format is as described here. This means you can now write scripts like the following:

[:repeatedly
 [:press "ctrl alt DELETE"]
 [:press "alt F4"]
 [:press "ctrl C"]
 [:press "ctrl D"]
 [:wait 500]]

Pre-release 0.2.0

02 Sep 15:49
Compare
Choose a tag to compare
Pre-release 0.2.0 Pre-release
Pre-release

This release adds the ability to actually kill the bot if it is getting out of hand.

  • Press the Escape key to immediately kill the bot.

Pre-release 0.1.0

31 Aug 20:03
Compare
Choose a tag to compare
Pre-release 0.1.0 Pre-release
Pre-release

This very first version is capable of running EDN files with commands. Assuming you've placed the jar and a file called commands.edn in the same directory, run the following from your command line:

java -jar cljck-0.1.0.jar commands.edn

This will process the one command contained in commands.edn. Don't have several commands. It probably won't work.

As an example of a command, consider the following example:

[:repeatedly
 [:repeat 5 [:click]]
 [:move-to 500 300]
 [:click]
 [:move-to 800 500]
 [:repeat 10
  [:move-to 1 1]
  [:click]
  [:move-to 10 10]
  [:click]]
 [:wait 5000]]

Repeat and repeatedly both take any positive number of other commands as their body. Repeat takes a number of repetitions as its first argument, while repeatedly just repeats until killed. Move-to takes precisely two integers: the absolute x and y position to move to. Click takes no arguments. Wait takes an integer as argument, which is the number of milliseconds to wait.