Because sometimes you're away, but nobody needs to know.
NotAFK is a lightweight Windows tool that keeps your PC session active by simulating small, natural mouse cursor movements at random intervals. No installation required. No fuss.
When running, NotAFK quietly nudges your mouse cursor by a few pixels every now and then — mimicking the natural drift of a hand resting on a mouse. This is enough to prevent your PC from locking and to keep your status green in apps like Microsoft Teams, Slack, or Zoom.
- 🖱️ Moves the cursor 1 to 10 pixels per nudge in a natural drift pattern
- ⏱️ Waits a random interval between 3 and 120 seconds between movements
- 📋 Logs every movement in the console with a timestamp and move count
- 🛑 Stops instantly when you close the window — no background processes left behind
- Windows 10 or newer
- No additional software or installation needed
| File | Description |
|---|---|
Start NotAFK.bat |
The launcher — this is the file you double-click |
NotAFK.ps1 |
The PowerShell script that does the work |
not-afk.zip |
Contains both files |
⚠️ Both main files must be kept in the same folder. Moving one without the other will break the launcher.
Download both main files and place them in the same folder or download the zip file and extract its contents (e.g. your Desktop or Documents).
Double-click Start NotAFK.bat.
A console window will open and explain what the script does.
Type START and press Enter when prompted.
NotAFK will begin running and log each cursor movement to the console.
Simply close the console window. NotAFK stops immediately and leaves nothing running in the background.
Once running, you'll see a live log like this:
[14:32:05] Move #1 Cursor nudged (+3px, -1px)
[14:33:47] Move #2 Cursor nudged (+2px, +2px)
[14:35:01] Move #3 Cursor nudged (-1px, +3px)
Windows shows a security warning when I double-click the .bat file This is normal for files downloaded from the internet. Click "More info" then "Run anyway" to proceed. This prompt only appears once.
The script doesn't start / PowerShell opens and closes immediately Your organisation may have a strict PowerShell execution policy set by an IT administrator. In that case, NotAFK will not be able to run without IT involvement — this is a Windows security restriction, not a bug in NotAFK.
I see a Notepad window instead of a console
You double-clicked NotAFK.ps1 instead of Start NotAFK.bat. Always launch using the .bat file.
NotAFK uses a drift-and-nudge algorithm to simulate natural hand movement. Rather than jumping to a random position each time, it blends the direction of the previous movement with a new random impulse — 40% carry-over, 60% new direction. This creates a smooth, wandering motion that avoids the mechanical look of purely random jumps.
Cursor movement is clamped to your screen boundaries, so the cursor will never drift off-screen regardless of resolution or monitor size.
The script talks directly to the Windows user32.dll API using two native functions:
SetCursorPos— moves the cursor to a given positionGetCursorPos— reads the cursor's current position
No third-party libraries. No registry changes. No background services.
NotAFK does not collect, transmit, or store any data. It runs entirely on your local machine and has no network activity whatsoever. The source code is fully visible and commented — you can read exactly what it does before running it.
v1.0 — Initial release
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) licence.
You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material
Under the following terms:
- Attribution — You must give appropriate credit to deltaminimal and indicate if changes were made
- NonCommercial — You may not use the material for commercial purposes
See the
LICENSEfile for the full licence text, or visit creativecommons.org/licenses/by-nc/4.0 for a human-readable summary.
© 2026 deltaminimal