1. Open the webpage in Chrome.
2. Right-click on the page and select "Inspect" or press Ctrl + Shift + I (Windows) or Cmd + Option + I (Mac).
3. Go to the "Console" tab.
4. Paste the code into the console using Ctrl + V (Windows) or Cmd + V (Mac).
5. Press Enter to run the script!
6. Press the ' key to open the controls menu.
Click the button below to copy the autoclicker code to your clipboard:
(function() {
let a, b = 0, c = false, d = { x: 0, y: 0 }, clickSpeed = 10;
let clickPattern = 'single'; // Default click pattern
let clickArea = { x: 0, y: 0, width: window.innerWidth, height: window.innerHeight }; // Full screen by default
// Sound effect when a click happens
const clickSound = new Audio('https://www.soundjay.com/button/beep-07.wav'); // Beep sound for each click
// User input for click pattern and area
const setupClickPatternAndArea = () => {
const menu = document.createElement('div');
menu.style.position = 'fixed';
menu.style.top = '50%';
menu.style.left = '50%';
menu.style.transform = 'translate(-50%, -50%)';
menu.style.backgroundColor = 'rgba(0, 0, 0, 0.8)';
menu.style.color = 'white';
menu.style.fontSize = '18px';
menu.style.padding = '20px';
menu.style.borderRadius = '10px';
menu.style.zIndex = '10000';
menu.style.textAlign = 'center';
menu.style.textShadow = '0 0 5px #ffffff, 0 0 10px #ffffff';
menu.innerHTML =
Select Click Pattern
Click area - You can define a click area in the console using the 'p' key.
;
document.body.appendChild(menu);
// Button actions for click pattern selection
document.getElementById('single').addEventListener('click', () => {
clickPattern = 'single';
console.log('Click pattern set to: Single');
menu.style.display = 'none';
});
document.getElementById('double').addEventListener('click', () => {
clickPattern = 'double';
console.log('Click pattern set to: Double');
menu.style.display = 'none';
});
document.getElementById('random').addEventListener('click', () => {
clickPattern = 'random';
console.log('Click pattern set to: Random');
menu.style.display = 'none';
});
// Close the menu
document.getElementById('closeMenu').addEventListener('click', () => {
menu.style.display = 'none';
});
};
// User sets a custom click area by clicking on the screen
document.addEventListener('click', (e) => {
clickArea.x = e.clientX - 50; // Adjust to make the area slightly smaller
clickArea.y = e.clientY - 50;
clickArea.width = 100; // Fixed width
clickArea.height = 100; // Fixed height
console.log(Click area set to: (${clickArea.x}, ${clickArea.y}, ${clickArea.width}, ${clickArea.height}));
});
document.addEventListener('mousemove', (e) => {
d.x = e.clientX;
d.y = e.clientY;
});
// Create click event
function e(x, y) {
const f = new MouseEvent('click', {
bubbles: true,
cancelable: true,
view: window,
clientX: x,
clientY: y
});
const g = document.elementFromPoint(x, y);
if (g) {
g.dispatchEvent(f);
b++;
console.log('Clicks Count: ' + b);
}
}
// Double-click logic
function doubleClick(x, y) {
e(x, y); // First click
setTimeout(() => e(x, y), 50); // Second click after 50ms
}
// Random click logic
function randomClick(x, y) {
if (Math.random() > 0.5) {
e(x, y);
}
}
// Perform click based on pattern and within click area
function performClick(x, y) {
if (x >= clickArea.x && x <= clickArea.x + clickArea.width && y >= clickArea.y && y <= clickArea.y + clickArea.height) {
if (clickPattern === 'single') {
e(x, y);
} else if (clickPattern === 'double') {
doubleClick(x, y);
} else if (clickPattern === 'random') {
randomClick(x, y);
}
}
}
// Start the auto-clicker
function f() {
a = setInterval(() => {
performClick(d.x, d.y);
}, clickSpeed);
c = true;
console.log('Auto-clicker started!');
}
// Stop the auto-clicker
function g() {
clearInterval(a);
c = false;
console.log('Auto-clicker stopped!');
}
// Reset click count
function resetClickCount() {
b = 0;
console.log('Click count reset to 0');
}
})();