How is it possible to force the update without logging out and back in or restarting the machine. So if I run this PowerShell code the mouse size in the ease of access setting is at the correct value. It will change the correct values in the registry. $CursorRefresh::SystemParametersInfo(0x0057,0,$null,0) Uint = Add-Type -MemberDefinition $CSharpSig -Name WinAPICall -Namespace SystemParamInfo -PassThru Public static extern bool SystemParametersInfo( $CSharpSig = EntryPoint = "SystemParametersInfo")] Set the uiParam parameter to zero and the pvParam parameter to NULL. # Here is where it lists stuff relating to setting and updating any settings changed. # This section is where I thought it would update the cursor size. $RegCursorsAccess.SetValue("CursorSize", 3) $RegCursorsControlPanel.SetValue("CursorBaseSize", 48) # In the code below I'm trying to change the size of the cursor. $RegCursorsControlPanel = $RegConnect.OpenSubKey("Control Panel\Cursors", $true) $RegCursorsAccess = $RegConnect.OpenSubKey("Software\Microsoft\Accessibility", $true) Here's the code I have so far (Some additional comments within): $RegConnect = ::OpenRemoteBaseKey("CurrentUser", "$env:COMPUTERNAME") I've written the code below to affect (what I think) are the only reg keys responsible for the size of the cursor and pointer in Windows 10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |