MonitorZwift-v2

1.8.3

### Main Script Function

This script performs the following tasks:

- **Window Management**:
- Resizes and positions the PowerShell window.
- Sets window transparency for the PowerShell window.
- **Path Resolution**:
- Resolves paths for Zwift Launcher and Monitor Script.
- **Application Automation**:
- Starts Zwift Launcher and monitors Zwift game processes.
-
### Main Script Function

This script performs the following tasks:

- **Window Management**:
- Resizes and positions the PowerShell window.
- Sets window transparency for the PowerShell window.
- **Path Resolution**:
- Resolves paths for Zwift Launcher and Monitor Script.
- **Application Automation**:
- Starts Zwift Launcher and monitors Zwift game processes.
- Sets the primary display for Zwift and restores it after the session.
- Launches PowerToys Workspaces for Zwift if required.
- **Zwift Game Monitoring**:
- Waits for Zwift game to start, maximizes its window, and monitors until it closes.
- **Application Cleanup**:
- Closes additional applications like Sauce for Zwift, OBS, and Spotify.
- **File Synchronization**:
- Synchronizes Zwift-related files using FreeFileSync.
- **Browser Automation**:
- Launches Microsoft Edge in app mode with specified URLs.
- **File Explorer Integration**:
- Opens File Explorer for Zwift media and pictures directories.
- **Task Validation**:
- Validates task completion and provides a review window before closing.

---

### Features

- **Display Management**:
- Automatically sets the primary display for Zwift and restores it after the session.
- **Application Automation**:
- Launches Zwift Launcher and monitors Zwift game processes.
- Closes additional applications like Sauce for Zwift, OBS, and Spotify.
- Launches PowerToys Workspaces for Zwift if required.
- **OBS Integration**:
- Stops OBS recording using a configurable hotkey.
- Closes OBS gracefully or forcefully if needed.
- **File Synchronization**:
- Runs a FreeFileSync batch job to synchronize Zwift-related files after the session.
- **Browser Automation**:
- Launches Microsoft Edge in app mode with specified URLs (e.g., YouTube Studio, Strava, Garmin Connect).
- **File Explorer Integration**:
- Opens File Explorer for Zwift media and pictures directories.
- **Customizable Settings**:
- Configurable display indices, window positions, and dimensions.
- Adjustable transparency for the PowerShell window.
- Customizable hotkeys for OBS recording and closing.
- **Task Validation**:
- Tracks and validates the completion of all tasks, providing a summary at the end.
- **User-Friendly Animations**:
- Includes waiting animations and countdown timers for a better user experience.

---

### Requirements

- **PowerShell**: Version 5.1 or later.
- **External Dependencies**:
- DisplayConfig module (automatically installed if missing).
- Applications like PowerToys, FreeFileSync, and OBS (optional but recommended).
- **Configuration**:
- Ensure all paths and parameters are correctly configured before running the script.

---

### Examples

1. **Run with default settings**:
````powershell
.\MonitorZwift-v2.ps1

2. **Run with custom Zwift Launcher path and display settings**:
.\MonitorZwift-v2.ps1 -ZwiftLauncherPath "C:\Zwift\ZwiftLauncher.exe" -PrimaryDisplayZwift 2

3. **Run with custom window transparency and dimensions**:
.\MonitorZwift-v2.ps1 -Transparency 50 -WindowWidth 400 -WindowHeight 800
```

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name MonitorZwift-v2 -RequiredVersion 1.8.3

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

© 2025 Nick. All rights reserved.

Package Details

Author(s)

  • Nick2bad4u

Tags

Zwift Automation PowerShell OBS FileSync Display Management Edge Spotify Sauce for

Functions

Add-CompletedTask Test-TaskCompletion Get-CompletedTasks Show-WaitingAnimation Wait-WithAnimation Import-DisplayConfigModule Get-ProcessRunning Set-WindowTransparencyUWP Set-PrimaryDisplay

Dependencies

This script has no dependencies.

Release Notes

- Initial release of MonitorZwift-v2.
- Automates Zwift session setup, monitoring, and teardown.
- Includes display management, OBS integration, file synchronization, and application handling.
- Added support for Microsoft Edge in app mode and Sauce for Zwift.

FileList

Version History

Version Downloads Last updated
2.0.6 5 4/28/2025
2.0.5 5 4/28/2025
2.0.4 4 4/28/2025
2.0.3 5 4/27/2025
2.0.1 6 4/26/2025
1.9.2 4 4/23/2025
1.9.1 5 4/22/2025
1.9.0 4 4/22/2025
1.8.7 4 4/14/2025
1.8.6 5 4/14/2025
1.8.5 5 4/14/2025
1.8.4 4 4/13/2025
1.8.3 (current version) 6 4/12/2025
1.7.5 4 4/7/2025
Show less