Word Local AutoSave
Enables AutoSave functionality for local documents in Microsoft Word via direct Word saves
Author: communism420
This mod enables automatic saving for locally stored Word documents, similar to
how AutoSave works with OneDrive files.
How it works
The mod monitors keyboard input, document dirty-state changes, and natural
editing boundaries in Microsoft Word. It also listens to native Word
application events where possible. When you type, paste, format text, switch
away, rename via Save As, or make other editing changes, it schedules a save
after a short delay.
This build does not send Ctrl+S. It talks to Word directly through
automation and calls document save APIs, which removes the root cause of false
shortcut activations.
Features
- Detects typing, backspace, delete, enter, punctuation, numpad, and clipboard operations
- Detects Ctrl+V, Ctrl+X, Ctrl+Y, Ctrl+Z, Ctrl+B, Ctrl+I, Ctrl+U, Ctrl+Enter
- Detects context-menu paste and non-keyboard formatting changes after Word marks the document dirty
- Configurable delay before saving
- Optional minimum interval between saves to prevent excessive disk writes
- Direct Word save calls with zero synthetic keyboard input
- Flushes pending changes earlier when you finish an action or leave the current document/window
- Waits for modal Word UI such as dialogs, menus, and IME composition before saving
- Migrates internal tracking after Save As / rename without losing document state
- Binds more precisely to the current Word instance and current document window
- Uses native Word application events for document transitions and manual saves when available
- Keeps pending changes armed after direct save failures so transient file errors can be retried
- Only saves when the active Word document window is focused
Shortcut Safety (v4.0.0)
- No
SendInput
- No synthetic
Ctrl state
- No partial
Ctrl+... races
- Save execution stays on one owner UI thread
- Pending input and held modifiers postpone auto-save instead of racing it
Performance and Reliability (v4.0.0)
- Uses Word events as the primary signal with an adaptive low-frequency watchdog
- Reuses cached Word application, document, metadata, and automation member IDs
- Avoids filesystem path resolution in the steady editing path
- Uses one owner-window timer with reason-aware bounded retry backoff
Limitations
- Only works with documents that have already been saved at least once
- New unsaved documents are skipped to avoid opening "Save As"
- Operations that don't make Word mark the document as modified are ignored