123456789101112131415161718192021222324252627282930313233343536 |
- ; @Author : liuyuqi
- ; @Contact : liuyuqi.gov@msn.cn
- ; @Time : 2019/08/05 07:06:02
- ; @Version : 1.0
- ; @License : (C)Copyright 2019 liuyuqi.
- ; @Desc : ZoomIn Ctrl+2 改为鼠标右键左滑
- ;右键
- 触发
- global flag := 0
- RButton::
- minGap = 30 ;
- MouseGetPos xpos1,ypos1
- Keywait, RButton, U
- MouseGetPos xpos2, ypos2
- if (xpos2-xpos1 > minGap and abs(ypos1-ypos2)<minGap){
- if(flag){
- ;send, {Esc}
- send, ^{2}
- flag := 0
- }else{
- send, ^{2}
- flag := 1
- }
- }else{
- send, {RButton}
- }
- Return
- ; esc::ExitApp
|