开发者

Skype login from C# form

开发者 https://www.devze.com 2023-02-19 05:44 出处:网络
I didn\'t find out how to login from a form in C# to Skype. Is there a possibility to do that? e.g. I type my username and password in a form and when I click sign in, an instance of skype wil开发者_G

I didn't find out how to login from a form in C# to Skype. Is there a possibility to do that? e.g. I type my username and password in a form and when I click sign in, an instance of skype wil开发者_Go百科l launch and log me with my credentials.

Thanks a lot!


You can launch skype with command-line arguments like this:

 skype.exe /username:your.username /password:your.password

Found reference here, and tested working on my machine (Skype 5.1). It seems this is not officially documented, so it may disappear in future versions of Skype.

Use System.Diagnostics.Process.Start to launch a program from C#.


May be you could make use of the Skype4COM, an activex component available from Skype. You can download it from : http://developer.skype.com/accessories


This works only when the checkbox "sign me on when skype starts" is checked in the login window. Unless it doesn't.

0

精彩评论

暂无评论...
验证码 换一张
取 消