Prevent Screen Saver supports a global keyboard shortcut that toggles protection between Active and Idle from any foreground application — you never need to leave your current window or reach for the tray icon. The hotkey is enabled by default using the Ctrl+Alt+P preset, and you can switch to a different combination or disable it entirely from the tray menu.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/proteo5/Prevent-Screen-Saver/llms.txt
Use this file to discover all available pages before exploring further.
How the Hotkey Works
Pressing the registered shortcut fires a toggle action that mirrors what clicking the tray icon does. If protection is currently idle, the shortcut activates it. If protection is active, the shortcut deactivates it. The tray icon, tray tooltip, and main window status all update immediately to reflect the new state, exactly as they would when using the tray controls. The hotkey is registered system-wide using the WindowsRegisterHotKey API, which means it works even when the Prevent Screen Saver window is hidden or the app is running entirely in the background.
Default Shortcut
The default hotkey is Ctrl+Alt+P, registered as presetctrl-alt-p. The hotkey is enabled by default when the app is first launched and after every restart, unless you have explicitly disabled it or changed the preset in settings.
Available Presets
Five built-in presets are available. You can switch between them at any time from the tray menu.| Preset ID | Key Combination |
|---|---|
ctrl-alt-p | Ctrl+Alt+P (default) |
ctrl-shift-f12 | Ctrl+Shift+F12 |
ctrl-shift-f11 | Ctrl+Shift+F11 |
ctrl-shift-f10 | Ctrl+Shift+F10 |
ctrl-shift-f9 | Ctrl+Shift+F9 |
Changing the Active Preset
Right-click the tray icon
Open the context menu by right-clicking the Prevent Screen Saver tray icon.
Open the Hotkey submenu
Hover over Hotkey to expand the submenu. The currently active preset is shown with a checkmark.
Enabling and Disabling the Hotkey
What Happens When Registration Fails
If another application has already claimed the selected key combination,RegisterHotKey will fail. Prevent Screen Saver handles this gracefully:
App continues normally
The failure does not crash or disable the app. All tray menu controls continue to work as usual.
You are notified
A balloon notification appears: “Could not register [shortcut]. Use tray controls or choose another preset.” An error dialog also explains the issue.
Failure is logged
The exact Win32 error code is written to the diagnostics log so you can trace the cause if needed.
Hotkey is marked disabled
If registration fails when enabling the hotkey, the enabled flag is automatically set back to
false and saved, keeping settings consistent.Persisted Settings
The hotkey configuration is saved automatically tosettings.json whenever a change is made. No manual save step is required.
settings.json
| Setting | Type | Default | Description |
|---|---|---|---|
HotkeyEnabled | bool | true | Whether the global hotkey is registered at startup. |
HotkeyPresetId | string | ctrl-alt-p | The ID of the selected key combination preset. |
HotkeyPresetId is found in settings at startup (for example, from a corrupted or manually edited file), the app automatically falls back to the default ctrl-alt-p preset and saves the corrected value.
See Startup Settings for the full settings file structure and file location.