Eclipse Cattle Farming Game Turbo Tap, has anyone started this project?
Recently, I've seen many people directly clicking on the interface with the mouse after purchasing click counts, which is too tiring. So I wrote a code for automatic clicking.
You can copy this code into the frontend console to click automatically. I've written comments, and you can customize it according to your needs.
// Set the total number of clicks
const totalClicks = 9500;
let currentClicks = 0;
// Create click function
function performClick() {
const canvas = document.querySelector("canvas");
if (canvas) {
// Create click event
const clickEvent = new MouseEvent('click', {
view: window,
bubbles: true,
cancelable: true
});
canvas.dispatchEvent(clickEvent);
// Update count and show progress
currentClicks++;
console.log(`Completed clicks: ${currentClicks}/${totalClicks}`);
}
}
// Use setInterval to control click frequency
function startClicking() {
const interval = setInterval(() => {
if (currentClicks >= totalClicks) {
clearInterval(interval);
console.log('Click task completed!');
return;
}
performClick();
}, 50); // Click once every 50 milliseconds, adjust the interval as needed
}
// Add stop function
let isRunning = false;
function toggleClicking() {
if (isRunning) {
clearInterval(clickInterval);
isRunning = false;
console.log('Clicking has stopped');
} else {
startClicking();
isRunning = true;
console.log('Starting clicking');
}
}
// Start execution
startClicking();
// If you need to stop manually, you can type in the console:
// toggleClicking();