Javascript code:
function OnEvent_ChatWndSendMessage( oChatWnd, sMessage ) {
if ( sMessage === '/webcam' ) {
Interop.Call( 'user32', 'SendMessageW', oChatWnd.Handle, 0x0111 /* WM_COMMAND */, 40279, 0 );
return '';
}
if ( sMessage === '/videocall' ) {
Interop.Call( 'user32', 'SendMessageW', oChatWnd.Handle, 0x0111 /* WM_COMMAND */, 40049, 0 );
return '';
}
}