Beispiel #1
0
        public bool Nav(string text, ChatDesk chatDesk)
        {
            bool result = false;

            try
            {
                chatDesk.Automator.OpenWorkbench();
                Util.WaitFor(() => false, 300, 300, false);
                HwndInfo hwndInfo = new HwndInfo(this.AddrTextBoxHwnd, "AddrTextBoxHwnd");
                WinApi.ClickPointBySendMessage(hwndInfo.Handle, 30, 5);
                Util.WaitFor(() => false, 100, 100, false);
                WinApi.Editor.SetText(hwndInfo, text, true);
                for (int i = 0; i < 2; i++)
                {
                    Util.WaitFor(() => false, 100, 100, false);
                    WinApi.ClickHwndBySendMessage(hwndInfo.Handle, 1);
                    WinApi.PressEnterKey();
                }
                result = true;
            }
            catch (Exception e)
            {
                Log.Exception(e);
                result = false;
            }
            return(result);
        }
Beispiel #2
0
 public void ClickRecentContactButton()
 {
     WinApi.ClickHwndBySendMessage(this.RecentContactButtonHwnd, 1);
 }
Beispiel #3
0
 public void OpenWorkbench()
 {
     WinApi.ClickHwndBySendMessage(this.OpenWorkbenchButtonHwnd, 1);
 }
Beispiel #4
0
 public void ClickGroupChatCloseBuyerButton()
 {
     WinApi.ClickHwndBySendMessage(this.GroupChatCloseButtonHwnd, 1);
 }
Beispiel #5
0
 public void ClickSingleChatCloseBuyerButton()
 {
     WinApi.ClickHwndBySendMessage(this.SingleChatCloseButtonHwnd, 1);
 }
Beispiel #6
0
 public void OpenChatDesk()
 {
     WinApi.ClickHwndBySendMessage(this.ChatDeskButtonHwnd, 2);
 }