如题
目前情况是点击按钮后,程序就会卡死不动。
如:
private void timer1_Tick(object sender, EventArgs e)
{
button2.Text = "wdnmd";
using (var sshClient = new SshClient("219.139.77.115", 15824, "root", "abc123"))
{
sshClient.Connect();
SshCommand sshCmd = sshClient.RunCommand("adb shell monkey -p com.tencent.mobileqq -c android.intent.category.LAUNCHER 1");
sshClient.Disconnect();
}
timer1.Enabled = false;
}