Shoutbox

viewing a contacts webcam - 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: viewing a contacts webcam (/showthread.php?tid=91669)

viewing a contacts webcam by bennybob134 on 07-27-2009 at 12:04 PM

i just want to know if there is a script that can view a contacts webcam or maybe a text command that would do so?


RE: viewing a contacts webcam by toddy on 07-27-2009 at 12:06 PM

no, viewing a webcam is invite only


RE: viewing a contacts webcam by bennybob134 on 07-27-2009 at 12:10 PM

no i meen could one be written for example i type /cam and it sends an invite


RE: viewing a contacts webcam by toddy on 07-27-2009 at 12:19 PM

quote:
Originally posted by matty
Create a new script with the following code

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 '';
    }
}


This will allow you to type /webcam and have it start the webcam or type /videocall for it to start a video call.

Cheers!

RE: viewing a contacts webcam by bennybob134 on 07-27-2009 at 12:22 PM

ok thanks


RE: viewing a contacts webcam by matty on 07-27-2009 at 12:46 PM

Thats not really what he/she is asking for per say.

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


RE: viewing a contacts webcam by tobby on 07-31-2009 at 04:57 PM

How would i do this if i wanted to install this script on my computer and then login to my computer at work and send a command to myself which would send me the cam invite.

Regards T


RE: viewing a contacts webcam by matty on 07-31-2009 at 05:14 PM

If this is the correct menu code for the invitation you can set Plus! to auto accept the webcam invite for your email account.


RE: viewing a contacts webcam by CarlosHero on 11-15-2009 at 06:42 PM

matty how would i install this on myself and instead of me doing /webcam they do !webcam so i send my webcam when receiving the message


RE: viewing a contacts webcam by CookieRevised on 11-15-2009 at 08:37 PM

quote:
Originally posted by CarlosHero
matty how would i install this on myself and instead of me doing /webcam they do !webcam so i send my webcam when receiving the message
You'll find almost the exact code you need in toddy's post here:
Javascript code:
function
OnEvent_ChatWndReceiveMessage(oChatWnd, sOrigin, sMessage) {
    // Only react if the command has been send by a contact and if it is a one-to-one chat
    if (sOrigin !== Messenger.MyName && oChatWnd.Contacts.Count === 1) {
        if (sMessage === '!webcam') {
            // Start your webcam and send an invite to the contact to view your webcam
            Interop.Call( 'user32', 'SendMessageW', oChatWnd.Handle, 0x0111 /* WM_COMMAND */, 40279, 0 );
            return ''
        }
    }
}

Note that anybody could send the command. So this is not so 'secure'. To make it a bit more secure you could either use the sOrigin and try to find the email address associated with the contact name (but that is not so reliable), or you can simply add a 'secret' password as a parameter to the "!webcam" command:
Javascript code:
if (sMessage === '!webcam mypassword') {


RE: viewing a contacts webcam by CarlosHero on 11-15-2009 at 10:03 PM

thanks alot CookieRevised, and thanks for the password hint i'll ue that.

EDIT: is there a way to hide the command from me seeing it, so they can talk in like a normal message saying something like, i'll turn it on now!webcam mypassword and all i see is i'll turn it on now


RE: viewing a contacts webcam by SmokingCookie on 11-17-2009 at 06:46 PM

I think this'll do it:

JScript code:
var Password = "mypassword";
 
function OnEvent_ChatWndReceiveMessage(oChatWnd,sOrigin,sMessage) {
    // Only react if the command has been send by a contact and if it is a one-to-one chat
    if(oChatWnd.Contacts.Count === 1) {
        if(sMessage.search("!webcam " + Password) > 0) {
            // USe webcam only if contact sent it
            if(sOrigin !== Messenger.MyName) Interop.Call("user32","SendMessageW",oChatWnd.Handle,0x0111 /* WM_COMMAND */,40279,0);
            // Show only the rest of the message
            return sMessage.replace("!webcam " + Password,"");
        }
    }
}


With this code, one can send "Let's use th!webcam mypassworde webcam!", but onlu "Let's use the webcam!" will be shown (Only if both of you have the script though).
RE: viewing a contacts webcam by ivano_savona on 05-02-2012 at 06:32 PM

Hello

I am a new user, English is not my mother language so be kind with me !

I read the conversation because I'd like to use this script too. I copied on 2 PCs and tried to send the invitation to both the PCS... but nothing happens.

I see the message on MSN chat : Let's use the webcam!

But the webcams nevers opened. Why ?


RE: viewing a contacts webcam by Spunky on 05-03-2012 at 12:25 AM

It is possible that the code could changed slightly in WLM 2011 which wasn't out when this was posted.

I wouldn't be able to tell you what it needs to be changed to though