Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 159626f

Browse files
committed
Add "Disable enhanced pointer precision"
1 parent 3b582a1 commit 159626f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SetVisualFXPerformance # SetVisualFXAppearance
111111
# EnableDarkTheme # DisableDarkTheme
112112
# AddENKeyboard # RemoveENKeyboard
113113
# EnableNumlock # DisableNumlock
114+
# DisableEnhPointerPrecision # EnableEnhPointerPrecision
114115
# SetSoundSchemeNone # SetSoundSchemeDefault
115116
# DisableStartupSound # EnableStartupSound
116117
# DisableChangingSoundScheme # EnableChangingSoundScheme

Win10.psm1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,6 +1711,22 @@ Function DisableNumlock {
17111711
}
17121712
}
17131713

1714+
# Disable enhanced pointer precision
1715+
Function DisableEnhPointerPrecision {
1716+
Write-Output "Disabling enhanced pointer precision..."
1717+
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSpeed" -Type String -Value "0"
1718+
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold1" -Type String -Value "0"
1719+
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold2" -Type String -Value "0"
1720+
}
1721+
1722+
# Enable enhanced pointer precision
1723+
Function EnableEnhPointerPrecision {
1724+
Write-Output "Enabling enhanced pointer precision..."
1725+
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSpeed" -Type String -Value "1"
1726+
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold1" -Type String -Value "6"
1727+
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold2" -Type String -Value "10"
1728+
}
1729+
17141730
# Set sound scheme to No Sounds
17151731
Function SetSoundSchemeNone {
17161732
Write-Output "Setting sound scheme to No Sounds..."

0 commit comments

Comments
 (0)