key3

key3Query Filter

; ===== PROJECT MODULES MOVE COUNTER ===== moveCount := 0 active := true ToolTip, Move counter...

; ===== PROJECT MODULES MOVE COUNTER =====

moveCount := 0
active := true

ToolTip, Move counter ACTIVE`nPress ↑ to move up`nPress Esc to stop, 20, 20

; Intercept Up arrow
Up::
    if (!active)
        return

    moveCount++
    ToolTip, Moved up: %moveCount%`nPress Esc to stop, 20, 20

    ; Pass through to IntelliJ
    Send, {Up}
return

; Optional: count Down arrow too
Down::
    if (!active)
        return

    moveCount--
    ToolTip, Position delta: %moveCount%`nPress Esc to stop, 20, 20

    Send, {Down}
return

; Stop tool
Esc::
    active := false
    ToolTip
    moveCount := 0
return

Enter fullscreen mode Exit fullscreen mode