0

I have looked through the code but I simply do not have the understanding to know what functions are doing what and how in relation to C# my primary coding language.

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)

Oh and I do have skype4com imported and im using that api, that is not the issue with conversion.

scott.korin
  • 2,537
  • 2
  • 23
  • 36
Cacoon
  • 2,467
  • 6
  • 28
  • 61
  • 1
    The job seems to be done here: http://community.skype.com/t5/Windows-desktop-client/how-to-get-the-profile-picture-of-users-using-skype4com-api-with/td-p/444063 – Simon Mourier Mar 12 '13 at 13:26

1 Answers1

0

InputBox is a window that displays that prompts for input. It is available in VB.NET, and you can actually use it in C# by adding a reference to Microsoft.VisualBasic. See here.

WScript is also not available in VB and it would probably be good to research how to use the Skype plugin in the Skype Developer Forum. Here's a link about how to use the Skype DLL in C#.

Community
  • 1
  • 1
scott.korin
  • 2,537
  • 2
  • 23
  • 36