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); }
public void ClickRecentContactButton() { WinApi.ClickHwndBySendMessage(this.RecentContactButtonHwnd, 1); }
public void OpenWorkbench() { WinApi.ClickHwndBySendMessage(this.OpenWorkbenchButtonHwnd, 1); }
public void ClickGroupChatCloseBuyerButton() { WinApi.ClickHwndBySendMessage(this.GroupChatCloseButtonHwnd, 1); }
public void ClickSingleChatCloseBuyerButton() { WinApi.ClickHwndBySendMessage(this.SingleChatCloseButtonHwnd, 1); }
public void OpenChatDesk() { WinApi.ClickHwndBySendMessage(this.ChatDeskButtonHwnd, 2); }