Example #1
0
        public void DetermineControlVisibility(string visibleControl, string windowTitle)
        {
            string isvisible = "0";

            while (isvisible == "0")
            {
                _Au3Lib.Sleep(250);
                isvisible = _Au3Lib.ControlCommand(windowTitle, "", visibleControl, "IsVisible", "");
            }
            isvisible = "0";
        }
Example #2
0
 private void Register(string number, string transport, string server, string port)
 {
     softPhone.ControlClick(title, "", "Button1");
     softPhone.Send("{DOWN}");
     softPhone.Send("{ENTER}");
     softPhone.WinWait(titleAccount);
     softPhone.WinActivate(titleAccount);
     softPhone.WinWaitActive(titleAccount);
     softPhone.ControlClick(titleAccount, "", "Edit1");
     softPhone.Send(number);
     softPhone.Sleep(100);
     softPhone.Send("{TAB}");
     softPhone.Sleep(100);
     softPhone.Send($"{server}:{port}");
     softPhone.Sleep(100);
     softPhone.Send("{TAB}");
     softPhone.Sleep(100);
     softPhone.Send("{TAB}");
     softPhone.Sleep(100);
     softPhone.Send(number);
     softPhone.Sleep(100);
     softPhone.Send("{TAB}");
     softPhone.Sleep(100);
     softPhone.Send($"{server}:{port}");
     softPhone.Sleep(100);
     softPhone.Send("{TAB}");
     softPhone.Sleep(100);
     softPhone.Send(number);
     softPhone.Sleep(100);
     softPhone.Send("{TAB}");
     softPhone.Sleep(100);
     softPhone.Send("111111");
     softPhone.Sleep(100);
     softPhone.ControlCommand(titleAccount, "", "ComboBox2", "SelectString", transport);
     softPhone.Sleep(100);
     softPhone.Send("{DOWN 2}");
     softPhone.Sleep(100);
     softPhone.ControlClick(titleAccount, "", "Edit13");
     softPhone.Send("00");
     softPhone.Sleep(100);
     softPhone.ControlClick(titleAccount, "", "Button7");
     title += $" - {number}";
     softPhone.WinWait(title);
     softPhone.WinActivate(title);
     softPhone.WinWaitActive(title);
 }