marketplace/macro

Hold to Auto-Click

v0.1.0

@rebindfree

Hold a side button and it clicks up to 50 times a second. Let go, it stops.

Gallery

Hold to Auto-Click preview

Readme

Hold Mouse 5 and Rebind clicks the left button for you, from 5 to 50 times a second. The moment you let go, it stops, so it never runs away from you.

Needs Rebind 3.5.0 or newer on Windows, macOS, or Linux. No extra permissions.

Settings

  • Hold to click: default Mouse 5.
  • Clicks per second: 5 to 50, default 20. Each click lasts 10 ms.

Key changes apply while the package runs on Rebind 3.9 or newer. On older versions, restart the package after changing a key.

Before you use it

Many simulators are built around auto clickers; many competitive games and servers ban them. Check the rules where you play.

Limits

  • Some games ignore clicks shorter than they expect, or cap the rate they read.
  • Live use remains unverified on Windows, macOS, and Linux.

Stop

Let go of the button. Stop the package from the editor toolbar, or press Left Ctrl + Left Alt + K to stop all scripts.

Reviews

No reviews yet. Be the first, from the app.

Source

Version 0.1.0 (current)

main.luau

-- Hold to Auto-Click: while the trigger is held, click the left button at the
-- chosen rate. Letting go stops it at once.

local cfg = UI.Schema({
  trigger = UI.Keybind("Mouse5", { label = "Hold to click" }),
  cps = UI.Slider(20, {
    min = 5,
    max = 50,
    suffix = " /s",
    label = "Clicks per second",
  }),
})

Bind(
  cfg.trigger,
  Async(function()
    while Input.IsDown(cfg.trigger) do
      HID.Press("Mouse1", 10)
      Sleep(math.max(0, 1000 / cfg.cps - 10))
    end
  end)
)