; Close all Chrome windows by sending F4 to the window. while WinExist("ahk_exe chrome.exe") { WinActivate, ahk_exe chrome.exe Send !{f4} }