toddy
Veteran Member
kcus uoy
Posts: 2573 Reputation: 49
– / /
Joined: Jun 2004
|
RE: viewing a contacts webcam
quote: Originally posted by matty
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!
|
|