How to make an AFK hotkey that mutes and hides your screen
KeyRoutines' free AFK mode template uses one Hotkey trigger and an If on Remembered value is. Going away, it runs Remember layout, Mute or unmute, Show desktop and Show or hide desktop icons; coming back, Restore layout puts your windows back, the sound returns and the icons show again.
Steps
- 1
Add the template
Add AFK mode; it runs on Ctrl+Alt+K.
- 2
Away or back?
An If with Remembered value is checks whether you're marked as away.
- 3
Going away
Remember layout saves your windows, Mute or unmute mutes the sound, Show desktop clears the screen and Show or hide desktop icons hides the icons. Remember marks you as away.
- 4
Coming back
Mute or unmute brings the sound back, Restore layout returns your windows, and Desktop icons are showing (checked before you left) decides whether the icons come back.
Tips
- Add Lock the PC at the end of the going-away branch if you also want the PC locked.
- With Pro you can build the same thing as a Mode, which works out what to put back by itself.
Questions
- Is this an anti-AFK tool for games?
- No. It changes your own desktop while you step away. KeyRoutines never sends input to games.
- What if I restart while away?
- The away flag is remembered, so the next press brings things back.