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:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: viewing a contacts webcam
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).

This post was edited on 11-17-2009 at 06:52 PM by SmokingCookie.
11-17-2009 06:46 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