What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Launch my webcam by a text command

Launch my webcam by a text command
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Launch my webcam by a text command
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!

This post was edited on 02-18-2009 at 08:09 PM by matty.
02-18-2009 08:07 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Launch my webcam by a text command - by toctoc1980 on 12-19-2008 at 12:18 AM
RE: Launch my webcam by a text command - by matty on 02-18-2009 at 08:07 PM


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