Desktop.sikuli

(Download this script)
# This video helped me out a lot setting this up:
# https://www.youtube.com/watch?v=W4sn4yjSosA&t=29s
# -------------------------------------------------
# SikulixIDE 1.1.2.
# Jython 2.7.0
# The game: http://joshua.lightwolfstudios.com/rotate-dev/
# If you want to reset during an unfinished run
# press Alt + Shift C to get Sikulix back up.
# -------------------------------------------------
# Select a game region by clicking on ''Region'' at the top
# left of the screen. Make sure you play on the site
# mentioned above, otherwise you have to select your own
# region and test it.
game_region = Region(1043,431,21,21)
Settings.WaitScanRate = 100
# Make smaller if splits are not fireing. Make higher if false positive.
Settings.MinSimilarity = 0.98
# Makes sure every keypress will be registered immediately.
Settings.TypeDelay = 0
# My personal key I use for splitting, change if you want.
GLOBAL_SPLIT_KEY = '9'
# Amount of seconds the script will sleep after a split.
DELAY = 1
# All images the script will look for in order. The script will
# only look for the current image in the queue. Replace if you
# want by clicking on ''Take screenshot''.
split_regions = [,,,,,,,,,,,,,,,,]
for region in split_regions:
    game_region.wait(region,600)
    type(GLOBAL_SPLIT_KEY)
    sleep(DELAY)