屋顶上的木帷幕

海鸥之所以追着渔船飞,是因为它们认为会有沙丁鱼抛向大海 - Eric Cantona, 1995
随笔 - 146, 评论 - 3168, 引用 - 56

导航

工具

关于


标签

每月存档

广告



访客

 

By creating the "Messenger.UIAutomation" object, there is no too much difference between automating Live Messenger (aka. MSN Messenger 8.0) and the previous versions (6.0, 7.0, 7.5):

STATUS_OFFLINE = 1 STATUS_ONLINE = 2 SET obj = CreateObject("Messenger.UIAutomation") Signin addContact SUB Signin IF obj.MyStatus = STATUS_OFFLINE THEN obj.AutoSignin DO UNTIL obj.MyStatus = STATUS_ONLINE WScript.Sleep 2000 LOOP END IF END SUB SUB Signout IF obj.MyStatus = STATUS_ONLINE THEN obj.Signout DO UNTIL obj.MyStatus = STATUS_OFFLINE WScript.Sleep 2000 LOOP END IF END SUB SUB addContact obj.AddContact 0,"zhengziying@hotmail.com" END SUB

But I found the "Messenger.MessengerApp" object doesn't work for Live Messenger. Neither does the "MSNMessenger.MessengerApp" object and others, such as "Messenger.MsgrObject", etc. CreateObject returns a non-nil object but any method/property call gets an 0x80004005 error. Don't know why. Maybe it's temporarily not supported by the beta version; maybe we need to call in a new way.


随贴广告(测试期)
相关文章

打印 | 张贴于 2006-03-01 08:08:00 | Tag:Cool Stuffs

留言反馈

re: Messenger v8 UI Automation in VBScript 编辑
经我不完全确认 这个com obj不能说是v8 ui automation
虽然v8也可以适用
2006-04-04 15:09:00 | [匿名用户:卷毛]
re: Messenger v8 UI Automation in VBScript 编辑
嗯,是有点问题。能signout,但是script会报错。

messenger的automation在各个机器上的行为不一样,而且还和script跑在什么script host里面也有关系:IE 6, IE 7, WSH有可能得到不一样的结果。
2006-03-03 09:14:00 | [匿名用户:mvm]
re: Messenger v8 UI Automation in VBScript 编辑
Hi Eric,

it seems the sub signout does not work.
2006-03-01 18:05:00 | [匿名用户:Henry]
博客主人设置本博客不允许匿名用户发表言论,请登录后再试

Powered by: Joycode MVC Blogger System