Advertisement
congdantoancau

Toggle Move mouse to right border / center of windows

Jan 9th, 2019
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Toggle Move mouse to right border / center of windows
  2. F13::
  3.     WinGetPos, x, y, w, h, a
  4.     MouseGetPos, mx, my
  5.     ;if (mx > w * 3/4 and mx != w - 14 or mx == w/2)
  6.     if (mx < w * 3/4)
  7.     {
  8.         MouseMove, w - 14, h/2, 6
  9.     }
  10.     else
  11.     {
  12.         MouseMove, w/2, h/2, 6
  13.     }
  14. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement