DEV Community

Query Filter
Query Filter

Posted on

key17

#Persistent
SetTitleMatchMode, 2  ; match anywhere in the window title

upCounter := 0

; Hotkey for up arrow
#IfWinActive ahk_exe idea64.exe  ; only trigger when IntelliJ is active
Up::
    upCounter++

    ; Get IntelliJ window position
    WinGetPos, X, Y, Width, Height, A  ; A = active window (IntelliJ)

    ; Show tooltip near top-left corner of IntelliJ
    Tooltip, Up pressed: %upCounter%, %X% + 20, %Y% + 20
return
#IfWinActive

Enter fullscreen mode Exit fullscreen mode

Top comments (0)