It doesn't work because you need to create the ActiveXObject in JScript rather than setting a reference in VB. Also, the messenger API you are refering to is actually Windows Messenger that ships with Windows XP, not Windows Live Messenger, so it will probably try to start the wrong programs webcam anyway.
Use the SendMessage API as I stated above.
EDIT:
js code:
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x0111, 40279, 0);
// This code is untested. Replace 40279 with 40049 for Video Call
Source:
quote:
Originally posted by djdannyp
MENUITEM "Start a Video &Call", 40049, MFT_STRING, MFS_ENABLED
MENUITEM "&Show your webcam", 40279, MFT_STRING, MFS_ENABLED
40049 is for video call
40279 is for webcam