2016-03-15 31 views
1

我使用罗技的Trackman大理石鼠标。 http://support.logitech.com/en_us/product/trackman-marble如何使用Autohotkey捕获Logitech trackman特殊按钮?

这是一个伟大的鼠标,但缺乏滚动轮。尽管如此,这是相当不错的鼠标。

我想捕获此鼠标上的特殊按钮。

以下工程适用于所有其他鼠标,但不适用于ror Trackman ... ;并非真正帮助TrackMan Marble。

XButton1 :: WheelDown

XButton2 :: WheelUp

我试图捕捉鼠标点击针对使用 “钥匙历史和脚本信息”,但没有给出任何特殊按钮..

还有什么可以做的吗?

感谢

普拉

回答

1
$XButton1:: 
    Loop { 
     if not GetKeyState("XButton1", "P") { 
      break 
     } 
     Send {WheelDown} 
     Sleep, 100 
    } 
return 

$XButton2:: 
    Loop { 
     if not GetKeyState("XButton2", "P") { 
      break 
     } 
     Send {WheelUp} 
     Sleep, 100 
    } 
return 

测试和Windows 10下为我工作了。在Windows 7和8上也一直使用它。

您可能想要修改睡眠毫秒时间以适应您的口味。

干杯。

0

如果您在使用Ubuntu,你可以创建或再打开/usr/share/X11/50-marblemouse.conf具有以下配置填写:

Section "InputClass" 
Identifier  "Marble Mouse" 
MatchProduct "Logitech USB Trackball" 
MatchIsPointer "on" 
MatchDevicePath "/dev/input/event*" 
Driver   "evdev" 
Option   "SendCoreEvents" "true" 

# Physical buttons come from the mouse as: 
#  Big: 1 3 
#  Small: 8 9 
# 
# This makes left small button (8) into the middle, and puts 
# scrolling on the right small button (9). 
# 
# comment as hand not comfort 
#Option "Buttons"   "9" 
#Option "ButtonMapping"  "1 8 3 4 5 6 7 2 9" 
#Option "EmulateWheel"  "true" 
#Option "EmulateWheelButton" "9" 
# reverse above small buttons(not as expected) 
Option "Buttons"   "8" 
Option "ButtonMapping"  "1 9 3 4 5 6 7 2 8" 
Option "EmulateWheel"  "true" 
Option "EmulateWheelButton" "8" 

Option "YAxisMapping"  "4 5" 
Option "XAxisMapping"  "6 7" 


# left hand 
#Option "Buttons"   "9" 
#Option "ButtonMapping"  "3 8 1 4 5 6 7 2 9" 
#Option "EmulateWheel"  "true" 
#Option "EmulateWheelButton" "9" 

#Option "YAxisMapping"  "4 5" 
#Option "XAxisMapping"  "6 7" 
EndSection 

更多详细信息,您可以参考https://help.ubuntu.com/community/Logitech_Marblemouse_USB