• Guide
  • Plans
  • Store
  • Download
  • HUDAim
  • Dashboard

Record macros, write Lua scripts and bind any key or mouse button on Windows - any game, any keyboard, any mouse. Download and try it free.

DiscordDownload for Windows

Product

  • Guide
  • Plans & Pricing
  • Store
  • Account

Games

  • Minecraft
  • ROB RUN
  • AION 2
  • Roblox
  • GTA 5 / FiveM
  • All Games

Learn

  • Blog
  • Build your first macro
  • Bind a macro to a button
  • Use it in a game
  • The commands you'll use most

Legal

  • Privacy Policy
  • Terms of Service
  • Site Map

© 2026 BUFFKEY. All rights reserved.

Windows 10 and 11 · PC Software

  1. Home
  2. Blog
  3. Macro Sleep Timing: How Long Should Each Pause Be?
Published November 16, 2026

Macro Sleep Timing: How Long Should Each Pause Be?

Sleep is the command that decides whether a macro feels instant or broken. Here is how to choose pause lengths for menus, clicks, and loops.

Guide·

By BuffKey Team

Macro Sleep Timing: How Long Should Each Pause Be?
Download BuffKeyStart the 3-day trial

Most macros that feel broken are not broken. They are simply too fast for the game. A menu animation is still opening, a click has not registered yet, or a loop has restarted before the first action finished. The fix is usually a number, not a rebuild.

What Sleep actually does

Sleep is a pause between two commands. It does not press anything, move anything, or wait for the game to do something. It just gives the previous command time to land before the next one starts.

That distinction matters. A Sleep of 250 ms means "wait a quarter of a second, then continue", not "wait until the menu is ready". The game might need longer. If the sequence is fragile, add more time rather than assuming the pause is already enough.

Start with the game's rhythm

Different parts of a game run at different speeds. A menu can take a quarter of a second to slide in; a click can register in a few milliseconds. Use the shape of the action to pick a starting pause:

SituationStarting pauseWhy
Opening or closing a menu250-400 msMost panel animations finish in this window
Confirming a purchase or placement150-300 msThe game needs to accept the click before the next step
Moving between inventory tabs200-350 msTabs often reload a list instead of swapping instantly
A rapid click loop50-150 msFast enough to feel continuous, slow enough to register
A recoil or fire loop5-10 msThe gap between a shot and the next input

These are starting points. A busy server, a heavier UI mod, or a lower-end PC can need more. Start high and reduce the pause until the macro gets unreliable, then put a little of the time back.

Too fast and too slow look different

A macro that is too fast usually fails in one of three ways:

  • The first action happens, then the next few do nothing.
  • Two clicks register where you expected one.
  • A menu opens and closes again before you see it.

A macro that is too slow feels laggy, but it rarely misses. That makes slow the safer direction while you are tuning. If a sequence works at 400 ms but not at 200 ms, the game needs something between those numbers, and the exact value may change with server load.

Change one pause at a time

If you change three Sleep values at once and the macro starts working, you will not know which one fixed it. Adjust one pause, run the macro, then move to the next.

Test in the same conditions you play in

A macro tuned on the desktop can fail in a game window. Test with the game open, at the same resolution and window mode you normally use, and in a quiet area if the game has one. If the game runs as administrator, run BuffKey as administrator too; Windows will not pass input from a normal app to an elevated window.

For a first pass, use F7 to test the macro and F8 to activate your bindings. Keep F11 in mind as the stop while you are learning the timing.

Sleep inside a loop

A loop repeats the commands between its start and end. The Sleep values inside that block are repeated too, so the pause you choose controls the loop's rhythm.

For a clicker, a 90-150 ms pause between clicks is a common starting point. For a menu loop, the pause after each click matters more than the loop itself. If the loop outruns the game, the extra clicks land on whatever screen comes next, which is how a tidy inventory routine turns into a mess.

When a longer pause is the right answer

Loading screens, server travel, and first-time UI animations are all cases where no fixed pause is guaranteed to be enough. A short pause works most of the time and fails under load. If a sequence must wait for something specific, a macro that waits for a screen colour or image is more reliable than a long Sleep, but it is also more work to set up.

For the first version of a macro, use Sleep. It is predictable, easy to edit, and easy to explain. Move to a conditional wait only when the fixed pause keeps failing in the same place.

The guide covers the command list, bindings, and the buttons you will use most. If you are tuning a fire loop, the recoil control article covers the pull and the pause together.

On this page

  • What Sleep actually does
  • Start with the game's rhythm
  • Too fast and too slow look different
  • Test in the same conditions you play in
  • Sleep inside a loop
  • When a longer pause is the right answer

Frequently asked questions

What is a good starting Sleep for a menu macro?+

Around 250-400 ms between screens. That covers most open and close animations. If a panel slides in slowly or the server is busy, raise the pause before changing anything else.

Why does my macro click twice?+

The usual cause is a loop or a hold binding firing again before the game finished handling the first click. Use a click binding for one-shot confirms, and add a pause after the click.

Can I set Sleep to 0 ms?+

You can, but it is rarely useful. The game may merge the inputs or drop one entirely. Start with a short pause and lower it only while the macro still behaves the same.

Does Sleep slow down my whole PC?+

No. Sleep only pauses the macro while it is running. When the macro ends, nothing is left running in the background.

Try it

Set it up in a game

The same recorder and bindings work in every title here. Pick the one you play.

  • Minecraft

    Minecraft macros for building, mining, and farms - with example command lists you can rebuild in a minute.

    Minecraft macros
  • ROB RUN

    ROB RUN macros and key binds for menus, inventory, base building, and recoil control - with example command lists you can rebuild in minutes.

    ROB RUN macros
  • Path of Exile 2

    Path of Exile 2 macros and key binds for flasks, weapon-swap blinks, two-skill combos, and stash routines - with example command lists you can rebuild.

    Path of Exile 2 macros

Keep reading

More from the blog

Short, practical pages about the parts of a macro that decide whether it works.

  • Macro vs Lua Script: Which One Should You Use?
    Comparison·November 9, 2026

    Macro vs Lua Script: Which One Should You Use?

    A macro is a fixed command list; a Lua script can count, branch, and repeat. Here is how to choose for a game routine.

    Read the article
  • Recoil Control Script & Macro: How They Work and How to Tune One
    Guide·November 23, 2026

    Recoil Control Script & Macro: How They Work and How to Tune One

    A recoil control macro pulls the mouse down a fixed amount between shots. Here is how the timing works, how to tune the pull, and where a Lua script helps.

    Read the article

Try it free

Three days. Every feature.

Download BuffKey, start the trial and build a macro in the time it takes to read the quick-start page. No card needed.

Windows 10 and 11 · one PC per license · cancel any time

Download for WindowsSee plans & pricing