However if you wanted to script it
code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
if( sMessage === '/flash' ){
if( pChatWnd.EditChangeAllowed === true ) {
pChatWnd.SendMessage('FLASHBANG!');
Interop.Call( 'user32', 'SendMessageW', pChatWnd.Handle, 0x10 /* WM_CLOSE */, 0, 0 );
return '';
}
}
}