Skip to content

A free anti-AFK macro for Windows.

Press Ctrl+Alt+Win+K and MacroWin presses Space in your game once a minute, so it doesn't mark you as away, until you press the keys again.

Free, no account needed. No script to write.

Space once a minute, so you don't show as away.

Ctrl+Alt+Win+K starts a Repeat that presses Space in the game in front, waits 60 seconds and goes again. The same keys stop it: that's the run policy Toggle.

Each press counts as input, so the game doesn't mark you AFK. Space is held down for a tenth of a second, so games notice it.

The macro Anti-AFK running in MacroWin: Ctrl+Alt+Win+K is pressed and Repeat, until the macro is stopped, presses Space, held for a tenth of a second, and waits 60 seconds, shown faster. In a game, a timer counting down to being marked away jumps back to full each time Space is pressed and the character hops. The same keys stop it.

Set it up.

Install in MacroWin

Free. It arrives switched off.

Or in MacroWin: Ctrl+N, then pick the Anti-AFK template.

MacroWin didn't open

MacroWin doesn't seem to be installed on this PC. Download it and install it, then click Install in MacroWin again.

Already have it? Update it to the latest version, or open the Macro Hub in MacroWin and search there.

Download MacroWin

Or build it yourself

  1. New macro, trigger Hotkey.
  2. Press Ctrl+Alt+Win+K in the Hotkey field.
  3. Click empty canvas; under More options, Run policy Toggle.
  4. Add Repeat with Count 0.
  5. Inside it, Press Key Space; under More options, Key hold 100.
  6. Then Wait 60000 ms.
  7. Ctrl+S, then switch Enabled on.

Variations and limits.

Every step in it is free, so the changes below are too.

Variations

Another key
Press Key's Key combination can be any key: a movement key such as W, or a key that does nothing in your game.
How often
Wait's Duration is the time between presses: 60000 ms is once a minute, 30000 ms twice. Each game has its own away time, so keep the Wait shorter than yours.
Key hold
Key hold (ms), under More options, is 100 here. Some games miss a key that's down for only a few milliseconds.
The mouse instead
Use Move Mouse in place of Press Key to nudge the pointer. The mouse jiggler does that so the PC and chat apps don't go idle; this macro presses a key so a game doesn't mark you away.

Limits

Games
Use it in single-player games and wherever a game's rules allow it. Many online games forbid AFK macros, and using one there can get you kicked or your account banned. MacroWin isn't made for cheating or for getting around anti-cheat. Read Play fair first.
Where it presses
In the window in front, so keep the game there. Switch to another window and Space goes there instead.
Getting out
The same keys stop it. If anything goes wrong, the emergency stop, Ctrl+Alt+End, stops every macro from any app.
Admin windows
A game that runs as administrator ignores keys from MacroWin until you turn on Work with admin windows in Settings.

FAQ

Is MacroWin a free anti-AFK macro?

Yes. Hotkey, Repeat, Press Key and Wait are all in the free version, with no account and no time limit. Free keeps a few macros switched on at once; the Pricing page shows the current limits.

Do I need to write a script?

No. You pick steps from a list and fill in their settings, or install the ready-made macro from this page. There is no code or script to write.

Does it work in Roblox and other games?

It presses a key in the window in front, so it works in games that take keyboard input, such as Roblox or Minecraft. Each game's rules say whether you may use it there.

Will I get kicked or banned for using it?

You can be, in a game whose rules forbid AFK macros, and many online games do. A kick or a ban is your risk. MacroWin isn't made for cheating or for getting around anti-cheat, so use it only where the game's rules allow it.

Which key should it press?

Space makes many characters jump. If a jump is a bad idea where you stand, pick a movement key such as W, or a key that does nothing in your game. Change it in Press Key's Key combination.

Can it move the mouse or the character instead?

Yes. Put Move Mouse in place of Press Key to nudge the pointer, or press a movement key such as W so the character moves a little each time.

How do I stop it?

Press Ctrl+Alt+Win+K again, or the emergency stop, Ctrl+Alt+End, from any app. It stops every running macro and lets go of any key a macro held down.

Read more about it.

Every step has its own page with all its settings, and the guides explain the ideas behind them.

  • Press KeyAny key or combination, and how long it's held.
  • RepeatCount, and 0 for until the macro is stopped.
  • Run policyToggle and the other four, side by side.
  • Keyboard and mousePressing keys, the emergency stop, and games.

Get the Ctrl+Alt+Win+K anti-AFK

Free, no account needed. Windows 10 and 11.

Download