Skype工具消息未发送

时间:2016-12-03 14:45:10

标签: c# skype4com

我正在尝试使用SKYPE4COMLib在C#中编写Skype工具。它向我显示Skype中的消息,但它们一直在加载。任何想法如何解决?
我的代码:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SKYPE4COMLib;

namespace SkypeTool
{
public partial class mainmenu : Form
{

    Skype skype = new Skype();


    public mainmenu()
    {
        InitializeComponent();
    }

    private void connect_Click(object sender, EventArgs e)
    {
        skype.Attach(5, false);
        status.Text = "connected";

    }


    private void button1_Click_1(object sender, EventArgs e)
    {
        skype.SendMessage("censored", "Test");

    }
 }
}

0 个答案:

没有答案