0
我已经查看了代码,但我根本没有理解知道哪些函数正在做什么以及如何与C#主编码语言相关。将VBScript片段转换为C#
Set mSkype = WScript.CreateObject("Skype4COM.Skype", "Skype_")
ContactName=InputBox ("Enter the contact's Skype User Name" & CHR(13) & "Note that this must be the User Name and not the Display Name", "User Name:")
If ContactName = "" Then
WScript.Quit
Else
If mSkype.User(ContactName).FullName="" then
WScript.Echo ("The name " & ContactName & " is not in your Contact List")
WScript.Quit
End If
End If
PictureFileName=InputBox ("Enter the path and name of the Picture" & CHR(13) & "The file extension must be .jpg", "Save Picture as:")
If PictureFileName="" Then
WScript.Quit
End If
cmdStr = "GET USER" & " " & ContactName & " " & "AVATAR 1" & " " & PictureFileName
mSkype.SendCommand mSkype.Command(0, cmdStr)
哦,我确实有skype4com导入和即时通讯使用该API,这不是转换的问题。
这项工作似乎在这里完成:http://community.skype.com/t5/Windows-desktop-client/how-to-get-the-profile-picture-of-users-using-skype4com-api -with/TD-p/444063 – 2013-03-12 13:26:33