Create a new script with the following code
js 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 '';
}
}
This will allow you to type /webcam and have it start the webcam or type /videocall for it to start a video call.
Cheers!