mod: 更改打开地图的方式

This commit is contained in:
Ayu0K 2025-01-05 12:56:18 +08:00
parent 3b54844e6b
commit 543e36f77e

View File

@ -19,6 +19,7 @@ using System.Threading.Tasks;
using BetterGenshinImpact.GameTask.Common.Exceptions;
using Vanara.PInvoke;
using static BetterGenshinImpact.GameTask.Common.TaskControl;
using BetterGenshinImpact.Core.Simulator.Extensions;
namespace BetterGenshinImpact.GameTask.AutoTrackPath;
@ -163,7 +164,7 @@ public class TpTask(CancellationToken ct)
await Delay(1000, ct);
ra1 = CaptureToRectArea();
}
Simulation.SendInput.Keyboard.KeyPress(User32.VK.VK_M);
Simulation.SendInput.SimulateAction(GIActions.OpenMap);
await Delay(1000, ct);
for (int i = 0; i < 3; i++)
{