Skip to content

Instantly share code, notes, and snippets.

@j4rv
Created October 3, 2018 10:20
Show Gist options
  • Save j4rv/88d8c701c78b2c7fd415414e3c74fda2 to your computer and use it in GitHub Desktop.
Save j4rv/88d8c701c78b2c7fd415414e3c74fda2 to your computer and use it in GitHub Desktop.
import java.awt.Robot
import java.awt.event.InputEvent
/*
CLICK LIKE CRA-ZY
*/
def sleepAmount = 200
def clicks = 1000
sleep(3000)
(1..clicks).each{
println it
Robot bot = new Robot()
bot.mousePress(InputEvent.BUTTON1_MASK)
bot.mouseRelease(InputEvent.BUTTON1_MASK)
sleep(sleepAmount)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment