spyoungtech/ahk

How to implement HotIf WinActive

Closed this issue · 1 comments

Execute a specific key in a specific window. Just like #HotIf WinActive :
The following buttons will only work in the Idea and PyCharm windows
#HotIf WinActive("ahk_exe ((idea64\.exe)|(pycharm64\.exe))")

This functionality is not directly implemented. However, as a workaround, you can create an equivalent check inside of your hotkey callback function.