Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance Force
- CoordMode, Mouse, Screen
- clickCount := 0
- ~LButton::
- clickCount++
- MouseGetPos, x, y
- if (clickCount = 1) {
- x1 := x
- ToolTip, First point saved`nX: %x1%
- SetTimer, RemoveTip, -800
- }
- else if (clickCount = 2) {
- x2 := x
- diff := x2 - x1
- ToolTip, Second point saved`nX difference: %diff%
- SetTimer, RemoveTip, -5500
- clickCount := 0
- }
- return
- RemoveTip:
- ToolTip
- return
Advertisement
Add Comment
Please, Sign In to add comment