Changed the way Notifications work since they are fired as background processes

This commit is contained in:
2026-03-30 11:03:24 -07:00
parent c723a75756
commit 9e9804b1b1
4 changed files with 172 additions and 183 deletions

View File

@@ -19,9 +19,10 @@ IT support tool that runs OBS Studio's replay buffer silently on VDI sessions, g
|---|---|
| **DEM Logon Task** | Runs `Start-OBSReplayBuffer.ps1` at logon — only DEM task required |
| **`config.psd1`** | Central config — UNC path, buffer duration, OBS executable path, IT contact number |
| **`Start-OBSReplayBuffer.ps1`** | Validates project files (with retry), deploys OBS config, creates user capture folder, writes OBS profile, launches OBS, confirms replay buffer started via log, shows startup notification, launches tray icon |
| **`Start-OBSReplayBuffer.ps1`** | Validates project files (with retry), deploys OBS config, creates user capture folder, writes OBS profile, launches OBS, confirms replay buffer started via log, launches startup notification, launches tray icon |
| **`Show-ReplayTray.ps1`** | WinForms system tray icon — right-click menu with Save Replay / Exit |
| **`Invoke-ReplaySave.ps1`** | Sends `SaveReplayBuffer` to OBS via WebSocket v5, verifies the file was written to disk, shows save confirmation popup |
| **`Invoke-ReplaySave.ps1`** | Sends `SaveReplayBuffer` to OBS via WebSocket v5, verifies the file was written to disk, launches save confirmation notification |
| **`Show-Notification.ps1`** | WPF popup launched as a separate interactive process — handles both `BufferStarted` and `ReplaySaved` notification types via `-Type` parameter |
| **`obs-config/`** | OBS config files — deployed to `%APPDATA%\obs-studio\` at logon by the script |
## Repository Structure
@@ -32,7 +33,8 @@ obs-replay-buffer/
├── scripts/
│ ├── Start-OBSReplayBuffer.ps1
│ ├── Show-ReplayTray.ps1
── Invoke-ReplaySave.ps1
── Invoke-ReplaySave.ps1
│ └── Show-Notification.ps1
└── obs-config/
├── global.ini
└── scenes/