; @Author : liuyuqi ; @Contact : liuyuqi.gov@msn.cn ; @Time : 2019/08/05 07:06:02 ; @Version : 1.0 ; @License : (C)Copyright 2019 liuyuqi. ; @Desc : 鼠标手势 rbutton:: minGap = 30 ; 设定的识别阈值,大于此阈值,说明在某方向上有移动 mousegetpos xpos1,ypos1 Keywait, RButton, U mousegetpos xpos2, ypos2 if (abs(xpos1-xpos2) < minGap and abs(ypos1-ypos2) minGap and abs(ypos1-ypos2) minGap and abs(ypos1-ypos2)minGap) ; up 最大化窗口, win+up send, #{up} else if (abs(xpos1-xpos2)< minGap and (ypos2-ypos1)>minGap) ; down 显示桌面, win+d send, #d else if (ypos2-ypos1 > minGap and (xpos1-xpos2) > minGap) ; down and left , ctrl+shift+T send, ^+t else if (ypos2-ypos1 > minGap and (xpos2-xpos1) > minGap) ; down and right, ctrl+w send, ^w else if (ypos1-ypos2 > minGap and (xpos2-xpos1) > minGap) ; up and right alt+f4 send, !{F4} else if (ypos1-ypos2 > minGap and (xpos1-xpos2) > minGap) ; up and left nothing send, {rbutton} else send, {rbutton} return