Exemple #1
0
 private void RemoteCtrlForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (pictureBox1 != null)
     {
         pictureBox1.Dispose();
     }
     CMD.Execute("del \"D:\\Program Files\\temp*.png\"");
 }
Exemple #2
0
        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);
        }
Exemple #4
0
 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++;
 }
Exemple #5
0
        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();
        }
Exemple #6
0
 private void Button1_Click(object sender, EventArgs e)
 {
     SetTextValue(CMD.Execute("adb connect " + textBox2.Text + ":" + textBox1.Text));
     Close();
 }
Exemple #7
0
 private void Button4_Click(object sender, EventArgs e)
 {
     TextBox1.Text = CMD.Execute("adb kill-server");
 }
Exemple #8
0
 private void Button2_Click(object sender, EventArgs e)
 {
     TextBox1.Text = CMD.Execute("adb devices");
 }
Exemple #9
0
 private void Button1_Click(object sender, EventArgs e)
 {
     TextBox1.Text = CMD.Execute("adb version");
 }