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

viewing a contacts webcam
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
viewing a contacts webcam - by bennybob134 on 07-27-2009 at 12:04 PM
RE: viewing a contacts webcam - by toddy on 07-27-2009 at 12:06 PM
RE: viewing a contacts webcam - by bennybob134 on 07-27-2009 at 12:10 PM
RE: viewing a contacts webcam - by toddy on 07-27-2009 at 12:19 PM
RE: viewing a contacts webcam - by bennybob134 on 07-27-2009 at 12:22 PM
RE: viewing a contacts webcam - by matty on 07-27-2009 at 12:46 PM
RE: viewing a contacts webcam - by tobby on 07-31-2009 at 04:57 PM
RE: viewing a contacts webcam - by matty on 07-31-2009 at 05:14 PM
RE: viewing a contacts webcam - by CarlosHero on 11-15-2009 at 06:42 PM
RE: viewing a contacts webcam - by CookieRevised on 11-15-2009 at 08:37 PM
RE: viewing a contacts webcam - by CarlosHero on 11-15-2009 at 10:03 PM
RE: viewing a contacts webcam - by SmokingCookie on 11-17-2009 at 06:46 PM
RE: viewing a contacts webcam - by ivano_savona on 05-02-2012 at 06:32 PM
RE: viewing a contacts webcam - by Spunky on 05-03-2012 at 12:25 AM


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