What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » viewing a contacts webcam

Pages: (2): « First [ 1 ] 2 » Last »
viewing a contacts webcam
Author: Message:
bennybob134
New Member
*


Posts: 3
Joined: Jul 2009
O.P. viewing a contacts webcam
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?
07-27-2009 12:04 PM
Profile E-Mail PM Find Quote Report
toddy
Veteran Member
*****

Avatar
kcus uoy

Posts: 2573
Reputation: 49
– / Male / Flag
Joined: Jun 2004
RE: viewing a contacts webcam
no, viewing a webcam is invite only

This post was edited on 07-27-2009 at 12:07 PM by toddy.
07-27-2009 12:06 PM
Profile PM Find Quote Report
bennybob134
New Member
*


Posts: 3
Joined: Jul 2009
O.P. RE: viewing a contacts webcam
no i meen could one be written for example i type /cam and it sends an invite
07-27-2009 12:10 PM
Profile E-Mail PM Find Quote Report
toddy
Veteran Member
*****

Avatar
kcus uoy

Posts: 2573
Reputation: 49
– / Male / Flag
Joined: Jun 2004
RE: viewing a contacts webcam
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!
07-27-2009 12:19 PM
Profile PM Find Quote Report
bennybob134
New Member
*


Posts: 3
Joined: Jul 2009
O.P. RE: viewing a contacts webcam
ok thanks
07-27-2009 12:22 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: viewing a contacts webcam
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 '';
    }
}

07-27-2009 12:46 PM
Profile E-Mail PM Find Quote Report
tobby
New Member
*

Avatar
I Support RSPCA

Posts: 2
Joined: Jul 2009
RE: viewing a contacts webcam
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
07-31-2009 04:57 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: viewing a contacts webcam
If this is the correct menu code for the invitation you can set Plus! to auto accept the webcam invite for your email account.
07-31-2009 05:14 PM
Profile E-Mail PM Find Quote Report
CarlosHero
New Member
*

Avatar
Super Man

Posts: 11
– / Male / Flag
Joined: Oct 2009
RE: viewing a contacts webcam
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
11-15-2009 06:42 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: viewing a contacts webcam
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') {


This post was edited on 11-15-2009 at 08:39 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-15-2009 08:37 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On