通过GPO或其他方式更改/强制左手鼠标设置

是否有可能通过GPO控制左手鼠标设置? (或者可以使用GPO推送的脚本🙂

我有Windows 7 / Windows Server 2008。

非常感谢您的build议。

烤面包

我意识到你已经接受了一个答案,但这里也有一个VBS版本给你(因为我知道你是那种寻找):

Const HKEY_CURRENT_USER = &H80000001 strComputer = "." Set Shell = CreateObject("WScript.Shell") Set objRegistry = GetObject ("winmgmts:\\" & strComputer & "\root\default:StdRegProv") strKeyPath = "Control Panel\Mouse" strValueName = "SwapMouseButtons" strValue = "1" objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue 

请注意,这些设置只有在用户下次login(应用之后)才会生效,同时请注意,Logitech的MouseWare和SetPoint等function通常只会切换该registry设置(直到您设置它为止在他们的鼠标专用软件)login后加载。

是的,可以做到。

组策略 – >用户configuration – >首选项 – > Windows设置

转到“registry”设置。

添加一个新的registry设置。

 [HKEY_CURRENT_USER\Control Panel\Mouse] SwapMouseButtons (RegSZ) = 1 

这是答案,因为它交换到左手,然后再次点击,它交换回来。 SwapMouseButtons只能左移,而不能移回。

在左右手之间进行切换,并用一个脚本返回 – 单击一次,然后再次单击,然后将其更改回RUNDLL32.EXE USER32.DLL,SwapMouseButton只能切换到左手而不是后退。

注意:如果您想在将此文件创build到MouseHandSwitch.vbs后通过电子邮件发送该文件,请复制以下脚本并将其保存为桌面上的.vbs文件,然后您可以获取该文件。

 '> Mouse change Left to Right handed. '> and repeat to set Left to Right handed again. '> By William Anderson July 17, 2015 Sub DoAction(str, ms) '> Check status until ready status = (WshShell.AppActivate)(cPanel.ProcessID) Do Until status = true WScript.Sleep 100 status = (WshShell.AppActivate)(cPanel.ProcessID) WScript.Sleep 100 Loop if status = true then WshShell.SendKeys str WScript.Sleep ms End if End Sub '> Set windows for best performance Set WshShell = CreateObject("WScript.Shell") Set cPanel = WshShell.Exec("rundll32.exe shell32.dll,Control_RunDLL main.cpl") status = (WshShell.AppActivate)(cPanel.ProcessID) Do Until status = true WScript.Sleep 100 status = (WshShell.AppActivate)(cPanel.ProcessID) WScript.Sleep 100 Loop if status = true then '> Send alt S to mouse panel DoAction "%S", 20 DoAction "{ENTER}", 20 End if