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 |
|
|
toddy
Veteran Member
kcus uoy
Posts: 2573 Reputation: 49
– / /
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 |
|
|
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 |
|
|
toddy
Veteran Member
kcus uoy
Posts: 2573 Reputation: 49
– / /
Joined: Jun 2004
|
RE: viewing a contacts webcam
quote: Originally posted by matty
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!
|
|
07-27-2009 12:19 PM |
|
|
bennybob134
New Member
Posts: 3
Joined: Jul 2009
|
O.P. RE: viewing a contacts webcam
ok thanks
|
|
07-27-2009 12:22 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: viewing a contacts webcam
Thats not really what he/she is asking for per say.
js 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 |
|
|
tobby
New Member
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
CarlosHero
New Member
Super Man
Posts: 11
– / /
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 |
|
|
CookieRevised
Elite Member
Posts: 15519 Reputation: 173
– / /
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: js 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:
js 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 |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|