mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 01:36:31 +02:00
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This documentation enhances the DSC documentation by incorporating reference documents and providing examples. Closes #42552. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [x] Closes: #xxx - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed --------- Co-authored-by: Niels Laute <niels.laute@live.nl>
289 lines
6.4 KiB
Markdown
289 lines
6.4 KiB
Markdown
---
|
|
description: DSC configuration reference for PowerToys FindMyMouse module
|
|
ms.date: 10/18/2025
|
|
ms.topic: reference
|
|
title: FindMyMouse Module
|
|
---
|
|
|
|
# FindMyMouse Module
|
|
|
|
## Synopsis
|
|
|
|
Manages configuration for the Find My Mouse utility, which helps locate your
|
|
mouse cursor on the screen.
|
|
|
|
## Description
|
|
|
|
The `FindMyMouse` module configures PowerToys Find My Mouse, a utility that
|
|
highlights your mouse cursor location when you press the Ctrl key. This is
|
|
particularly useful on large or multiple displays where the cursor can be
|
|
difficult to locate.
|
|
|
|
## Properties
|
|
|
|
The FindMyMouse module supports the following configurable properties:
|
|
|
|
### DoNotActivateOnGameMode
|
|
|
|
Controls whether Find My Mouse is disabled during game mode.
|
|
|
|
**Type:** boolean
|
|
**Default:** `true`
|
|
**Description:** When enabled, Find My Mouse will not activate when Windows
|
|
game mode is active.
|
|
|
|
### BackgroundColor
|
|
|
|
Sets the background color of the spotlight effect.
|
|
|
|
**Type:** string (hex color)
|
|
**Format:** `"#RRGGBB"`
|
|
**Default:** `"#000000"` (black)
|
|
|
|
### SpotlightColor
|
|
|
|
Sets the color of the spotlight circle around the cursor.
|
|
|
|
**Type:** string (hex color)
|
|
**Format:** `"#RRGGBB"`
|
|
**Default:** `"#FFFFFF"` (white)
|
|
|
|
### OverlayOpacity
|
|
|
|
Sets the opacity of the background overlay (0-100).
|
|
|
|
**Type:** integer
|
|
**Range:** `0` to `100`
|
|
**Default:** `50`
|
|
|
|
### SpotlightRadius
|
|
|
|
Sets the radius of the spotlight in pixels.
|
|
|
|
**Type:** integer
|
|
**Range:** `50` to `500`
|
|
**Default:** `100`
|
|
|
|
### AnimationDurationMs
|
|
|
|
Sets the duration of the spotlight animation in milliseconds.
|
|
|
|
**Type:** integer
|
|
**Range:** `0` to `5000`
|
|
**Default:** `500`
|
|
|
|
### SpotlightInitialZoom
|
|
|
|
Sets the initial zoom level of the spotlight effect.
|
|
|
|
**Type:** integer
|
|
**Range:** `100` to `1000`
|
|
**Default:** `200`
|
|
|
|
### ExcludedApps
|
|
|
|
List of applications where Find My Mouse is disabled.
|
|
|
|
**Type:** string (newline-separated list of executable names)
|
|
|
|
## Examples
|
|
|
|
### Example 1 - Configure spotlight appearance with direct execution
|
|
|
|
This example customizes the spotlight colors and radius.
|
|
|
|
```powershell
|
|
$config = @{
|
|
settings = @{
|
|
properties = @{
|
|
BackgroundColor = "#000000"
|
|
SpotlightColor = "#00FF00"
|
|
SpotlightRadius = 150
|
|
OverlayOpacity = 60
|
|
}
|
|
name = "FindMyMouse"
|
|
version = "1.0"
|
|
}
|
|
} | ConvertTo-Json -Depth 10 -Compress
|
|
|
|
PowerToys.DSC.exe set --resource 'settings' --module FindMyMouse --input $config
|
|
```
|
|
|
|
### Example 2 - Configure animation with DSC
|
|
|
|
This example customizes the spotlight animation behavior.
|
|
|
|
```bash
|
|
dsc config set --file findmymouse-animation.dsc.yaml
|
|
```
|
|
|
|
```yaml
|
|
# findmymouse-animation.dsc.yaml
|
|
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
|
|
resources:
|
|
- name: Configure Find My Mouse animation
|
|
type: Microsoft.PowerToys/FindMyMouseSettings
|
|
properties:
|
|
settings:
|
|
properties:
|
|
AnimationDurationMs: 750
|
|
SpotlightInitialZoom: 300
|
|
SpotlightRadius: 120
|
|
name: FindMyMouse
|
|
version: 1.0
|
|
```
|
|
|
|
### Example 3 - Install and configure with WinGet
|
|
|
|
This example installs PowerToys and configures Find My Mouse with custom
|
|
colors.
|
|
|
|
```bash
|
|
winget configure winget-findmymouse.yaml
|
|
```
|
|
|
|
```yaml
|
|
# winget-findmymouse.yaml
|
|
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
|
|
metadata:
|
|
winget:
|
|
processor: dscv3
|
|
resources:
|
|
- name: Install PowerToys
|
|
type: Microsoft.WinGet.DSC/WinGetPackage
|
|
properties:
|
|
id: Microsoft.PowerToys
|
|
source: winget
|
|
|
|
- name: Configure Find My Mouse
|
|
type: Microsoft.PowerToys/FindMyMouseSettings
|
|
properties:
|
|
settings:
|
|
properties:
|
|
BackgroundColor: "#000000"
|
|
SpotlightColor: "#0078D7"
|
|
OverlayOpacity: 70
|
|
SpotlightRadius: 140
|
|
DoNotActivateOnGameMode: true
|
|
name: FindMyMouse
|
|
version: 1.0
|
|
```
|
|
|
|
### Example 4 - Subtle configuration
|
|
|
|
This example creates a subtle, less intrusive spotlight effect.
|
|
|
|
```bash
|
|
dsc config set --file findmymouse-subtle.dsc.yaml
|
|
```
|
|
|
|
```yaml
|
|
# findmymouse-subtle.dsc.yaml
|
|
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
|
|
resources:
|
|
- name: Subtle spotlight
|
|
type: Microsoft.PowerToys/FindMyMouseSettings
|
|
properties:
|
|
settings:
|
|
properties:
|
|
OverlayOpacity: 30
|
|
SpotlightRadius: 100
|
|
AnimationDurationMs: 300
|
|
name: FindMyMouse
|
|
version: 1.0
|
|
```
|
|
|
|
### Example 5 - High visibility configuration
|
|
|
|
This example creates a high-visibility spotlight for accessibility.
|
|
|
|
```powershell
|
|
$config = @{
|
|
settings = @{
|
|
properties = @{
|
|
BackgroundColor = "#000000"
|
|
SpotlightColor = "#FFFF00"
|
|
OverlayOpacity = 80
|
|
SpotlightRadius = 200
|
|
SpotlightInitialZoom = 400
|
|
}
|
|
name = "FindMyMouse"
|
|
version = "1.0"
|
|
}
|
|
} | ConvertTo-Json -Depth 10 -Compress
|
|
|
|
PowerToys.DSC.exe set --resource 'settings' --module FindMyMouse --input $config
|
|
```
|
|
|
|
### Example 6 - Disable during gaming
|
|
|
|
This example ensures Find My Mouse doesn't interfere with games.
|
|
|
|
```bash
|
|
dsc config set --file findmymouse-gaming.dsc.yaml
|
|
```
|
|
|
|
```yaml
|
|
# findmymouse-gaming.dsc.yaml
|
|
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
|
|
resources:
|
|
- name: Gaming configuration
|
|
type: Microsoft.PowerToys/FindMyMouseSettings
|
|
properties:
|
|
settings:
|
|
properties:
|
|
DoNotActivateOnGameMode: true
|
|
name: FindMyMouse
|
|
version: 1.0
|
|
```
|
|
|
|
## Use cases
|
|
|
|
### Large displays
|
|
|
|
Configure for high visibility on large screens:
|
|
|
|
```yaml
|
|
resources:
|
|
- name: Large display configuration
|
|
type: Microsoft.PowerToys/FindMyMouseSettings
|
|
properties:
|
|
settings:
|
|
properties:
|
|
SpotlightRadius: 180
|
|
OverlayOpacity: 70
|
|
SpotlightColor: "#FFFFFF"
|
|
name: FindMyMouse
|
|
version: 1.0
|
|
```
|
|
|
|
### Accessibility
|
|
|
|
Configure for maximum visibility:
|
|
|
|
```yaml
|
|
resources:
|
|
- name: Accessibility configuration
|
|
type: Microsoft.PowerToys/FindMyMouseSettings
|
|
properties:
|
|
settings:
|
|
properties:
|
|
SpotlightColor: "#FFFF00"
|
|
OverlayOpacity: 80
|
|
SpotlightRadius: 200
|
|
AnimationDurationMs: 1000
|
|
name: FindMyMouse
|
|
version: 1.0
|
|
```
|
|
|
|
## See also
|
|
|
|
- [Settings Resource][01]
|
|
- [PowerToys DSC Overview][02]
|
|
- [MouseHighlighter][03]
|
|
|
|
<!-- Link reference definitions -->
|
|
[01]: ../settings-resource.md
|
|
[02]: ../overview.md
|
|
[03]: ./MouseHighlighter.md
|