Autohotkey实现快捷键切换鼠标左右手设置

考虑到不同语言版本,标题名不一样(Mouse Properties = 鼠标属性),修改为如下

#m::

run control main.cpl
win_class = #32770
winwait ahk_class %win_class%
WinActivate ahk_class %win_class%
winwaitactive ahk_class %win_class%
if errorlevel = 0
{
  send !s
  sleep 500
  send {enter}
}
return 

 

原版本如下:

#m::

run control main.cpl

title = Mouse Properties

winwait %title%

WinActivate %title%

winwaitactive %title%

if errorlevel = 0

{

  send !s

  sleep 500

  send {enter}

}

你可能感兴趣的:(Autohotkey实现快捷键切换鼠标左右手设置)