| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | ZTPoint windowCenter = createGroupWindowTextRect.GetCenterPoint(); |
| | | G.Instance.InputControl.MoveToAndClick(new ZTPoint(windowCenter.X + 50, windowCenter.Y + 80)); |
| | | |
| | | Utility.Structs.ZTPoint windowCenter = createGroupWindowTextRect.GetCenterPoint(); |
| | | G.Instance.InputControl.MoveToAndClick(new Utility.Structs.ZTPoint(windowCenter.X + 50, windowCenter.Y + 80)); |
| | | //清空文字 |
| | | for (int i = 0; i < 15; i++) |
| | | { |
| | |
| | | G.Instance.InfoWriter("create group ok"); |
| | | //点击组队“确定”按钮 |
| | | result = FuncUtils.TimeoutCancelableWrap(15 * 60 * 1000,this.cancellationToken, () => { |
| | | ZTPoint yes = ZTPoint.Empty; |
| | | ZTPoint no = ZTPoint.Empty; |
| | | Utility.Structs.ZTPoint yes = Utility.Structs.ZTPoint.Empty; |
| | | Utility.Structs.ZTPoint no = Utility.Structs.ZTPoint.Empty; |
| | | bool retFind = GroupCVHelper.FindYaoqingZuduiWindow(out yes, out no, this.GameRect); |
| | | if (retFind) |
| | | { |
| | | G.Instance.InputControl.MoveToAndClick(yes); |
| | | G.Instance.InfoWriter("other join group ok:"+yes); |
| | | G.Instance.InfoWriter("other join group ok:"+ yes); |
| | | } |
| | | return retFind; |
| | | }); |
| | |
| | | return true; |
| | | } |
| | | |
| | | ZTPoint searchButtonCenerPoint = searchButtonRect.GetCenterPoint(); |
| | | Utility.Structs.ZTPoint searchButtonCenerPoint = searchButtonRect.GetCenterPoint(); |
| | | //输入组名 |
| | | G.Instance.InputControl.MoveToAndClick(new ZTPoint (searchButtonCenerPoint.X-80,searchButtonCenerPoint.Y)); |
| | | G.Instance.InputControl.MoveToAndClick(new Utility.Structs.ZTPoint (searchButtonCenerPoint.X-80, searchButtonCenerPoint.Y)); |
| | | DeleteAllChar(groupName.Length + 3); |
| | | G.Instance.InputControl.InputString(groupName); |
| | | |