鼠标教鞭.ahk 458 B

123456789101112131415161718192021
  1. ; @Author : liuyuqi
  2. ; @Contact : liuyuqi.gov@msn.cn
  3. ; @Time : 2019/08/05 07:06:02
  4. ; @Version : 1.0
  5. ; @License : (C)Copyright 2019 liuyuqi.
  6. ; @Desc : 电子教鞭 F9 改为鼠标右键左滑
  7. ;右键触发
  8. RButton::
  9. minGap = 30 ;
  10. MouseGetPos xpos1,ypos1
  11. Keywait, RButton, U
  12. MouseGetPos xpos2, ypos2
  13. if (xpos2-xpos1 > minGap and abs(ypos1-ypos2)<minGap) ; right
  14. send, {F9}
  15. else
  16. send, {RButton}
  17. Return
  18. esc::ExitApp