Created
October 3, 2018 10:20
-
-
Save j4rv/88d8c701c78b2c7fd415414e3c74fda2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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