Code: Select all
#IfWinActive ahk_class IEFrame
!z::
; In IE, it only seems to work when there is MsgBox at the top; I haven't found an alternative to make it work.
MsgBox, You're in IE and you pressed !z. This will close the window.
; Sleep, 100
Send, ^w
Return
!u::
Send, ^w
Return
#IfWinActive