Exemplo n.º 1
0
        private void ProcessAddPeople()
        {
            _selectedPeople = _lstPeople[0];
            WinUtilities.LeftClick(new Point(165, 146));//url
            SendKeys.SendWait(_selectedPeople.Url);
            SendKeys.SendWait("{ENTER}");
            var autoIt = Process.Start("c:\\AddPPdb.au3");

            autoIt.Exited += SaveIsAdded;
        }
Exemplo n.º 2
0
 private void btnLoad_Click(object sender, EventArgs e)
 {
     //CurrentBrower = Process.Start("firefox.exe", "http:\\www.google.com");
     //Thread.Sleep(5000);
     Process[] processesByName = Process.GetProcesses();
     CurrentBrower = processesByName.FirstOrDefault(p => p.ProcessName.Contains("firefox"));
     if (CurrentBrower != null)
     {
         WinUtilities.SetParent(CurrentBrower.MainWindowHandle, pnClient.Handle);
         WinUtilities.MoveWindow(CurrentBrower.MainWindowHandle, 0, 0, pnClient.Width, pnClient.Height, false);
         WinUtilities.WndHandle = CurrentBrower.Handle;
     }
 }