Soc*_*owi 6 windows windows-registry autohotkey scrolling desktop-customization
在 Windows 10(可能还有所有其他 Windows 版本)中,单击其手柄上方或下方的滚动条可向上或向下滚动一页。但相反,我想跳转到单击的位置。已经有一个功能,可以通过使用Shift+Click或(在某些应用程序中)右键单击并从上下文菜单中选择“滚动到此处”来触发。但我希望该功能成为默认行为。
如何使“滚动到此处”成为滚动条中左键单击的默认操作?
理想情况下,应该有一个注册表设置或类似的东西。但我也愿意接受像 AutoHotKey 脚本这样的黑客攻击,该脚本可以检测滚动条上的左键单击并Shift为这些单击注入 a 。
试试这个 AutoHotkey 脚本:
~LButton Up::
; Get the current position of the mouse cursor:
MouseGetPos, MouseX, MouseY, A ; A means the active window
; Get the position and size of the active window:
WinGetPos, WinX, WinY, WinWidth, WinHeight, A
If (MouseX > (WinWidth - 20) and MouseX < WinWidth and MouseY > 200) ; right edge
SendInput, +{Click} ; + is the symbol for Shift
return
Run Code Online (Sandbox Code Playgroud)
https://www.autohotkey.com/docs/commands/MouseGetPos.htm https://www.autohotkey.com/docs/commands/WinGetPos.htm https://www.autohotkey.com/docs/Hotkeys.htm#符号
归档时间: |
|
查看次数: |
1005 次 |
最近记录: |