为了统一通过
ctrl+-
、ctrl+=
配合mouselnc的边缘滑动调节各个程序比例,对不同调节比例的快捷键做了映射。
其中,放大缩小比例快捷键有,资源管理器、OnetNote、Word、WPS
;==============explorer 专用↓↓↓↓===========================================
#IfWinActive ahk_exe explorer.exe
^=::
send ^!=
return
^-::
send ^!-
return
#IfWinActive
;;==============onenote专用↓↓↓↓===========================================
#IfWinActive ahk_exe onenote.exe
^-::
send ^+!-
return
^=::
send ^+!=
return
;==============word专用↓↓↓↓===========================================
;指定 word 程序运行
#IfWinActive ahk_exe WINWORD.EXE
;需要自己在word配置宏并设置快捷键触发`ctrl+alt+[`、`ctrl+alt+[`,具体本栏目有相关文章
^=::
send ^!.
return
^-::
send ^!,
return
;横向滚动
~LShift & WheelUp:: ; Scroll left.
ControlGetFocus, fcontrol, A
Loop 5 ; <-- Increase or decrease this value to scroll faster or slower.
ComObjActive("Word.application").ActiveWindow.SmallScroll(0,0,0,1)
return
~LShift & WheelDown:: ; Scroll right.
ControlGetFocus, fcontrol, A
Loop 5 ; <-- Increase or decrease this value to scroll faster or slower.
ComObjActive("Word.application").ActiveWindow.SmallScroll(0,0,1,0)
#IfWinActive
;==============excel专用↓↓↓↓===========================================
#IfWinActive,ahk_exe EXCEL.EXE
~LShift & WheelUp:: ; Scroll left.
ControlGetFocus, fcontrol, A
Loop 5 ; <-- Increase or decrease this value to scroll faster or slower.
ComObjActive("Excel.application").ActiveWindow.SmallScroll(0,0,0,1)
return
~LShift & WheelDown:: ; Scroll right.
ControlGetFocus, fcontrol, A
Loop 5 ; <-- Increase or decrease this value to scroll faster or slower.
ComObjActive("Excel.application").ActiveWindow.SmallScroll(0,0,1,0)
return
#IfWinActive
;==============zotero 专用↓↓↓↓===========================================
#IfWinActive ahk_exe wps.exe
^=::
send ^!]
return
^-::
send ^![
return
return
#IfWinActive
#IfWinActive ahk_exe zotero.exe
^=::
send !v{z}{enter}
return
^-::
send !v{down 8}{enter}
return
#IfWinActive