mod: 更改开书按键

This commit is contained in:
Ayu0K 2025-01-05 13:17:47 +08:00
parent 89109958a2
commit 71876a5e65

View File

@ -4,6 +4,7 @@ using System.Threading;
using System.Threading.Tasks;
using BetterGenshinImpact.Core.Recognition;
using BetterGenshinImpact.Core.Simulator;
using BetterGenshinImpact.Core.Simulator.Extensions;
using BetterGenshinImpact.GameTask.Common.Element.Assets;
using Microsoft.Extensions.Logging;
using Vanara.PInvoke;
@ -37,7 +38,7 @@ public class ClaimEncounterPointsRewardsTask
await Delay(200, ct);
TaskContext.Instance().PostMessageSimulator.KeyPress(User32.VK.VK_F1); // F1 开书
TaskContext.Instance().PostMessageSimulator.SimulateAction(GIActions.OpenAdventurerHandbook); // F1 开书
await Delay(1000, ct);