IdleGuard is a lightweight Windows system tray application that prevents your computer from going idle by intelligently simulating F13 key presses. Unlike simple "mouse jigglers" or basic idle prevention tools, IdleGuard features smart detection that pauses activity when you're actively consuming media or playing games.
- Media Awareness: Automatically detects when you're watching Netflix, YouTube, listening to Spotify, or using other media applications
- Gaming Support: Recognizes gaming platforms (Steam, Epic Games, Origin) and active games
- Audio Session Monitoring: Monitors active audio sessions to prevent interruption during video calls, music playback, or streaming
- Browsers: Chrome, Firefox, Edge, Opera
- Media Players: VLC, Windows Media Player, iTunes, Groove Music
- Streaming: Netflix, Spotify, YouTube Music
- Communication: Discord, Teams, Zoom, Skype
- Gaming: Steam, Epic Games, Origin, Battle.net, GOG
- Content Creation: OBS Studio
- System Tray Integration: Clean, minimal interface with status indicators
- Auto-Start Support: Automatically starts with Windows (configurable)
- Real-time Countdown: Shows time until next activity in tooltip
- Configurable Intervals: Customize trigger timing via config file
- Persistent Settings: Remembers your preferences between sessions
- Lightweight: Minimal resource usage and small file size
- No Network Access: Operates entirely offline
- Self-Contained: Single executable with no external dependencies
- Non-Intrusive: Uses F13 key (unused by most applications)
- Download the latest
IdleGuard.exefrom the Releases page - Place it in your desired folder
- Run
IdleGuard.exe - Right-click the system tray icon to enable/disable or exit
- IdleGuard starts enabled by default
- Default trigger interval: 5 minutes
- Automatically adds itself to Windows startup (can be disabled)
- Configuration is saved to
idleguard_config.ini
IdleGuard monitors your system for:
- User Idle Time: Tracks keyboard/mouse inactivity
- Audio Sessions: Detects active media playback
- Application Activity: Identifies media and gaming applications
When conditions are met (idle + no media/games), it sends an F13 keypress to maintain system activity.
- F13 is rarely used by applications
- Doesn't interfere with games or media
- Effectively prevents idle timeouts
- Won't disrupt your workflow
enabled=true
interval=300enabled:true/false- Enable/disable IdleGuardinterval: Time in seconds between triggers (default: 300 = 5 minutes)
- Enable/Disable: Toggle IdleGuard on/off
- Status Display: Shows current state and countdown
- Exit: Close application
- Windows 10/11
- MinGW-w64 or Visual Studio
- Windows SDK
# Compile resources
windres resource.rc build/resource.o
# Build executable
g++ -municode -mwindows -static main.cpp build/resource.o -o IdleGuard.exe -static-libgcc -static-libstdc++ -pthread -lole32ole32.lib- For COM audio session management- Windows API libraries (included with SDK)
- Prevent idle timeouts during long meetings
- Keep status active while reading documents
- Maintain VPN connections
- Pause during gameplay sessions
- Support for all major gaming platforms
- No interference with game controls
- Smart detection of video streaming
- Supports all major browsers and media apps
- Pauses during active playback
- Stay active while reading lengthy documents
- Prevent screen lock during research
- Maintain access to remote resources
- Language: C++ with Windows API
- COM Integration: Core Audio APIs for session monitoring
- Threading: Multi-threaded design for responsive UI
- Memory Management: RAII and smart pointer patterns
- OS: Windows 10 or later
- RAM: <5MB usage
- CPU: Minimal impact (<0.1% usage)
- Permissions: Standard user (no admin required)
| Icon | Status | Description |
|---|---|---|
| Active | IdleGuard is monitoring and will trigger when needed | |
| Inactive | IdleGuard is disabled |
Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.
- Clone the repository
- Open in VS Code or your preferred editor
- Use the provided build tasks or command line builds
- Test thoroughly before submitting PRs
This project is licensed under the MIT License - see the LICENSE file for details.
- Windows API documentation and community
- Audio session management techniques from Microsoft samples
- System tray implementation patterns
If you encounter issues or have questions:
- Check the Issues page for existing solutions
- Create a new issue with detailed information
- Include your Windows version and error details
