DEV Community

Query Filter
Query Filter

Posted on

key8

#SingleInstance Force
SetTitleMatchMode, 2  ; partial match for window titles

moveCount := 0
active := true

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

#IfWinActive, ideAutomation - FileExplorer

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

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

Esc::
    active := false
    ToolTip
return

#IfWinActive

Enter fullscreen mode Exit fullscreen mode

Top comments (0)