2013-03-12 4 views
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를 사용하여 변환 할 때 문제가되지 않습니다.

+1

일이 여기에있는 것으로 보입니다. http://community.skype.com/t5/Windows-desktop-client/how-to-get-the-profile-picture-of-users-using-skype4com-api -with/td-p/444063 –

답변

0

InputBox는 해당 입력 메시지를 표시하는 창입니다. VB.NET에서 사용할 수 있으며 실제로 Microsoft.VisualBasic에 대한 참조를 추가하여 C#에서 사용할 수 있습니다. here을 참조하십시오.

WScript도 VB에서 사용할 수 없으며 Skype 개발자 포럼에서 Skype 플러그인을 사용하는 방법을 연구하는 것이 좋습니다. Here은 C#에서 Skype DLL을 사용하는 방법에 대한 링크입니다.

관련 문제