Skip to content

Instantly share code, notes, and snippets.

@shurizzle
Last active May 18, 2021 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shurizzle/aca769fafccb53629bdc0c062aff4bfe to your computer and use it in GitHub Desktop.
Save shurizzle/aca769fafccb53629bdc0c062aff4bfe to your computer and use it in GitHub Desktop.
$code=@'
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo")]
public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, int[] pvParam, uint fWinIni);
'@
Add-Type $code -name Win32 -NameSpace System
$A = 0,0,0
[System.Win32]::SystemParametersInfo(3,0,$A,2)
$A[2] = 0
[System.Win32]::SystemParametersInfo(4,0,$A,2)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/shurizzle/aca769fafccb53629bdc0c062aff4bfe/raw/f53263b7f5ad62cecd4540130bffdc9568ec56f3/disable-enhance-pointer-precision.ps1'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment