private void RemoteCtrlForm_FormClosed(object sender, FormClosedEventArgs e) { if (pictureBox1 != null) { pictureBox1.Dispose(); } CMD.Execute("del \"D:\\Program Files\\temp*.png\""); }
private void pictureBox1_Click(object sender, EventArgs e) { Bitmap bitmap = new Bitmap(Image.FromFile(@"D:\Program Files\temp" + (n - 1) + ".png")); int pWidth = bitmap.Size.Width; int pHeight = bitmap.Size.Height; CMD.Execute("adb shell input tap " + x * pWidth / pictureBox1.Width + " " + y * pHeight / pictureBox1.Height); bitmap.Dispose(); Thread.Sleep(500); button1_Click(null, null); }
private void Button1_Click(object sender, EventArgs e) { string v = ""; if (radioButton1.Checked) { v = CMD.Execute($"adb push {textBox1.Text} {textBox2.Text}"); } else if (radioButton2.Checked) { v = CMD.Execute($"adb pull {textBox2.Text} {textBox1.Text}"); } MessageBox.Show(v); }
private void button1_Click(object sender, EventArgs e) { //MessageBox.Show(n.ToString()); CMD.Execute("adb shell /system/bin/screencap -p /sdcard/temp.png"); CMD.Execute("adb pull /sdcard/temp.png \"D:\\Program Files\""); try { File.Move("D:\\Program Files\\temp.png", "D:\\Program Files\\temp" + n + ".png"); }catch (FileNotFoundException) { } catch (IOException) { } try { pictureBox1.Load("D:\\Program Files\\temp" + n + ".png"); } catch (FileNotFoundException) { } try { File.Delete("D:\\Program Files\\temp" + (n - 1) + ".png"); } catch (IOException) { } n++; }
private void button1_Click(object sender, EventArgs e) { string c; if (radioButton1.Checked) { c = "adb reboot"; } else { switch (listBox1.SelectedIndex) { case 0: c = "adb reboot bootloader"; break; case 1: c = "adb reboot recovery"; break; case 2: c = "adb reboot sideload"; break; case 3: c = "adb reboot sideload-auto-reboot"; break; default: c = ""; break; } } CMD.Execute(c); Close(); }
private void Button1_Click(object sender, EventArgs e) { SetTextValue(CMD.Execute("adb connect " + textBox2.Text + ":" + textBox1.Text)); Close(); }
private void Button4_Click(object sender, EventArgs e) { TextBox1.Text = CMD.Execute("adb kill-server"); }
private void Button2_Click(object sender, EventArgs e) { TextBox1.Text = CMD.Execute("adb devices"); }
private void Button1_Click(object sender, EventArgs e) { TextBox1.Text = CMD.Execute("adb version"); }