Beispiel #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            Process p = Process.Start("notepad");

            Win32Client.Activate(p.Handle);
            Win32Client.SendKey("by");
            Win32Client.SendKey("{ENTER}");
            Win32Client.SendKey(" ");
            Win32Client.SendKey("xuld");
            Win32Client.SendKey("{ENTER}");
        }
Beispiel #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            SetVisibleCore(false);

            //等待窗口隐藏
            System.Threading.Thread.Sleep(600);
            using (Image s = Win32Client.GetScreenshots()){
                var sfd = new SaveFileDialog()
                {
                    AddExtension    = true,
                    CheckPathExists = true,
                    DefaultExt      = ".jpg",
                    Filter          = "缩略图(*.jpg)|*.jpg|位图(*.bmp)|*.bmp",
                    OverwritePrompt = true
                };
                if (sfd.ShowDialog() == DialogResult.OK)
                {
                    s.Save(sfd.FileName);
                }
            }
            SetVisibleCore(true);
        }
Beispiel #3
0
 private void button8_Click(object sender, EventArgs e)
 {
     Win32Client.Click(button9.Handle, false);
 }
Beispiel #4
0
 private void button16_Click(object sender, EventArgs e)
 {
     Win32Client.SetRunOnStart(false);
 }