Code: Select all
; prevent explorer F1
#HotIf WinActive("ahk_exe explorer.exe")
{
F1::
{
; Suspend
}
}
#HotIf
Code: Select all
F1::
msgbox 1
Return
ofc I can change the hotkey to F2 for example, but it used F2~F6 already so it will have to shift them all
I wonder if there is any way to allow script B to use F1 on explorer while still prevent default F1 behavior of explorer?