Shoutbox

Launch my webcam by a text command - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Launch my webcam by a text command (/showthread.php?tid=87828)

Launch my webcam by a text command by toctoc1980 on 12-19-2008 at 12:18 AM

In the past I delete the button to show my webcam to take care of my children.

I was able to lauch the webcam by write : /webcam

But now my mother doesnt have anymore a webcam and this command doesnt work anymore because its start a video conversation.

So im serching a other option to launch only my webcam.

A script, a plug in or maybe a source code(msdb lib???)


Tnaks


RE: Launch my webcam by a text command by matty on 02-18-2009 at 08:07 PM

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!