tabnation

mouse mirror get x diff

Feb 7th, 2026
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #SingleInstance Force
  2. CoordMode, Mouse, Screen
  3.  
  4. clickCount := 0
  5.  
  6. ~LButton::
  7. clickCount++
  8.  
  9. MouseGetPos, x, y
  10.  
  11. if (clickCount = 1) {
  12. x1 := x
  13. ToolTip, First point saved`nX: %x1%
  14. SetTimer, RemoveTip, -800
  15. }
  16. else if (clickCount = 2) {
  17. x2 := x
  18. diff := x2 - x1
  19. ToolTip, Second point saved`nX difference: %diff%
  20. SetTimer, RemoveTip, -5500
  21. clickCount := 0
  22. }
  23. return
  24.  
  25. RemoveTip:
  26. ToolTip
  27. return
  28.  
Advertisement
Add Comment
Please, Sign In to add comment