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:
toctoc1980
New Member
*


Posts: 4
Joined: Dec 2008
O.P. Launch my webcam by a text command
In the past I delete the button to show my webcam to take care of my children.

I was able to lauch the webcam by write : /webcam

But now my mother doesnt have anymore a webcam and this command doesnt work anymore because its start a video conversation.

So im serching a other option to launch only my webcam.

A script, a plug in or maybe a source code(msdb lib???)


Tnaks
12-19-2008 12:18 AM
Profile E-Mail PM Find Quote Report
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 »


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