DEV Community

Query Filter
Query Filter

Posted on

key7

#SingleInstance Force
moveCount := 0
active := true

ToolTip, Move counter ACTIVE`nMoves: %moveCount%, 20, 20

; Only active when the FileExplorer window is focused
#IfWinActive, ideAutomation - FileExplorer

$Up::
    if (!active)
        return
    if (A_PriorHotkey = "$Up" && A_TimeSincePriorHotkey < 120)
        return
    moveCount++
    ToolTip, Move counter ACTIVE`nMoves: %moveCount%, 20, 20
    Send, {Up}
return

$Down::
    if (!active)
        return
    if (A_PriorHotkey = "$Down" && A_TimeSincePriorHotkey < 120)
        return
    moveCount--
    ToolTip, Move counter ACTIVE`nMoves: %moveCount%, 20, 20
    Send, {Down}
return

Esc::
    active := false
    ToolTip
return

#IfWinActive  ; resets context

Enter fullscreen mode Exit fullscreen mode

Top comments (0)