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

Pages: (2): « First [ 1 ] 2 » Last »
Script for webcam?
Author: Message:
Hen
Junior Member
**


Posts: 37
Joined: Aug 2007
O.P. Script for webcam?
Hi,
In the scripting manual I didnt find "camera" in the search.
Can I operate the web cam from a script?
Will I be able to manipulate the web cam window? - move, resize, add text (headline for example) etc'?
How can I learn how to do that?
Is there any script that I can use as reference to learn from?
Thanks!
03-11-2009 09:09 AM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: Script for webcam?
Hello Hen,

Messenger Plus! does currently not have access to your or your contact's webcam. Therefore, you cannot control or access it either in scripting.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
03-11-2009 09:59 AM
Profile E-Mail PM Web Find Quote Report
Hen
Junior Member
**


Posts: 37
Joined: Aug 2007
O.P. RE: RE: Script for webcam?
quote:
Originally posted by mynetx


Messenger Plus! does currently not have access to your or your contact's webcam.

Can I do that? :
Write a program in TCL, enable the camera, output will be a nice window.

Call the TCL (or other C++) program from messenger plus, and thus bypassing this limitation?
Thanks!
03-11-2009 03:47 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: Script for webcam?
quote:
Originally posted by Hen
Can I do that? :
Write a program in TCL
I don't know if you can write TCL programs... ;)

quote:
Originally posted by Hen
enable the camera, output will be a nice window
I also don't know if you can access the camera from within TCL.
quote:
Originally posted by Hen
Call the TCL (or other C++) program from messenger plus
You can run any command in Messenger Plus! scripts. Just create a COM object and run your line:
JScript code:
var objShell = new ActiveXObject("WScript.Shell");
var strCommand = "calc"; // just example, should open the Calculator
var intResult = objShell.Run(strCommand);


You can find more information on the Run command in the MSDN documentation.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
03-11-2009 04:28 PM
Profile E-Mail PM Web Find Quote Report
Hen
Junior Member
**


Posts: 37
Joined: Aug 2007
O.P. RE: Script for webcam?
Thank you for your reply and help.
Hen.
03-12-2009 10:39 AM
Profile E-Mail PM Find Quote Report
timeshifter
New Member
*


Posts: 2
Joined: Mar 2009
RE: Script for webcam?
quote:
Originally posted by mynetx
Hello Hen,

Messenger Plus! does currently not have access to your or your contact's webcam. Therefore, you cannot control or access it either in scripting.

Are there any plans to add this functionality in the near future? I've been thinking about doing something that would require said capability.
03-16-2009 12:11 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Script for webcam?
Note that if you can do something with another program, you most likely can do it with Plus! scripting too as it has very few restrictions and allows you to use not only ActiveX/COM objects but also to use Windows APIs.

If there are some limits in Plus! scripting because you can't access certain objects, then those limitations would probably also apply to any other programming environment. The other way around is true also.

Aka, if you could manage to do want you want in TCL, then you could probably also do it in Plus! scripting.

(the above is not always true though, but in most cases it is and then it is just a question of how; Learning the Plus! scripting language (which is JScript) and its added components)

This post was edited on 03-17-2009 at 05:22 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-17-2009 05:21 AM
Profile PM Find Quote Report
timeshifter
New Member
*


Posts: 2
Joined: Mar 2009
RE: Script for webcam?
I'm just looking for a way to start a video call with a script... doesn't need to do anything aside from that. If WLM has an API that I could latch into with a service program written in C#, then fire that from the script, would that work?

<< complete noob with this scripting stuff... although I'm pretty well versed in JavaScript.
03-17-2009 11:57 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Script for webcam?
I think you can use the SendMessage API from Windows to launch webcams. I can't remember the correct parameter for webcam  although it is on the forum somewhere if you search
<Eljay> "Problems encountered: shit blew up" :zippy:
03-17-2009 12:24 PM
Profile PM Find Quote Report
Hen
Junior Member
**


Posts: 37
Joined: Aug 2007
O.P. RE: Script for webcam?
Hi,
When I opened the windows visual basic => Tools => reference, I added the Messenger API.
Browsing the "object browser" and then looking under IMessenger2 there is this function:
Messenger.StartVideo (vContact)

Why doesn't it work? :
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
var Contacts = ChatWnd.Contacts;  // Deafult will be current chat window, or do I need to specify this?
var e = new Enumerator(Contacts);
var Contact = e.item();  // Assume a chat window with only one contact, no need to iterate
Debug.Trace(Contact.Email)
if (Message.match("Camera")!=null){
Messenger.StartVideo(Contact)
}
}

Do I need to use "Interop::Call " ? - if so, how?
Also the "Debug.trace" doesnt show the contact email in the debug window.

Cheers,
Hen.
05-01-2009 10:24 AM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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