MButton::
If (A_PriorHotkey = A_ThisHotKey && A_TimeSincePriorHotkey < 300)
MouseGetPos, , , id, control
WinGetTitle, title, ahk_id %id%
WinClose, ahk_id %id%
KeyWait,MButton
return