Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实现Caps+滚轮 #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CapsLock+.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,18 @@ try
Capslock2:=""
return

<WheelUp::
try
runFunc(keyset.caps_wheelUp)
Capslock2:=""
return

<WheelDown::
try
runFunc(keyset.caps_wheelDown)
Capslock2:=""
return

;--::-------------------------
; KEY_TO_NAME := {"a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i"
; ,"j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r"
Expand Down
4 changes: 4 additions & 0 deletions language/English.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@ caps_lalt_wheelUp=keyFunc_doNothing

caps_lalt_wheelDown=keyFunc_doNothing

caps_wheelUp=keyFunc_doNothing

caps_wheelDown=keyFunc_doNothing

; CapsLock + Windows + 0~9 -> Bind window 0~9
caps_win_1=keyFunc_winbind_binding(1)

Expand Down
10 changes: 10 additions & 0 deletions language/Simplified_Chinese.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,10 @@ caps_lalt_wheelUp=keyFunc_doNothing

caps_lalt_wheelDown=keyFunc_doNothing

caps_wheelUp=keyFunc_doNothing

caps_wheelDown=keyFunc_doNothing

; CapsLock + Windows + 0~9 -> 绑定窗口 0~9
caps_win_1=keyFunc_winbind_binding(1)

Expand Down Expand Up @@ -723,6 +727,12 @@ keyfunc_wheel_up
; 滚轮下滑
keyfunc_wheel_down

; 左滑滚轮
keyFunc_wheel_left

; 右滑滚轮
keyFunc_wheel_right

)
global lang_winsInfosRecorderIniInit:=""
lang_winsInfosRecorderIniInit=
Expand Down
9 changes: 9 additions & 0 deletions lib/lib_keysFunction.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,15 @@ keyfunc_wheel_down(){
Send, {Wheeldown 3}
}

; 左滑滚轮
keyFunc_wheelLeft(){
Send, {WheelLeft}
}

; 右滑滚轮
keyFunc_wheelRight(){
Send, {WheelRight}
}

;keys functions end-------------

Expand Down
10 changes: 9 additions & 1 deletion lib/lib_keysSet.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ keySchemeInit_capslox(){
keyset.caps_lalt_wheelUp:="keyFunc_mouseSpeedIncrease"
if(!keyset.caps_lalt_wheelDown)
keyset.caps_lalt_wheelDown:="keyFunc_mouseSpeedDecrease"
if(!keyset.caps_wheelUp)
keyset.caps_wheelUp:="keyFunc_doNothing"
if(!keyset.caps_wheelDown)
keyset.caps_wheelDown:="keyFunc_doNothing"


return
}
Expand Down Expand Up @@ -550,7 +555,10 @@ keySchemeInit_capslockPlus(){
keyset.caps_lalt_wheelUp:="keyFunc_mouseSpeedIncrease"
if(!keyset.caps_lalt_wheelDown)
keyset.caps_lalt_wheelDown:="keyFunc_mouseSpeedDecrease"

if(!keyset.caps_wheelUp)
keyset.caps_wheelUp:="keyFunc_doNothing"
if(!keyset.caps_wheelDown)
keyset.caps_wheelDown:="keyFunc_doNothing"


return
Expand Down