mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
自动使用兑换码 (#1895)
This commit is contained in:
@@ -6,6 +6,7 @@ using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Threading;
|
||||
using BetterGenshinImpact.GameTask.Common;
|
||||
using Vanara.PInvoke;
|
||||
|
||||
namespace BetterGenshinImpact.GameTask.Model.Area;
|
||||
@@ -100,10 +101,20 @@ public class Region : IDisposable
|
||||
/// 点击【自己】的中心
|
||||
/// region.Derive(x,y).Click() 等效于 region.ClickTo(x,y)
|
||||
/// </summary>
|
||||
public void Click()
|
||||
public Region Click()
|
||||
{
|
||||
// 相对自己是 0, 0 坐标
|
||||
ClickTo(0, 0, Width, Height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Region DoubleClick()
|
||||
{
|
||||
// 相对自己是 0, 0 坐标
|
||||
ClickTo(0, 0, Width, Height);
|
||||
TaskControl.Sleep(60);
|
||||
ClickTo(0, 0, Width, Height);
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user