补充km+shell

This commit is contained in:
辉鸭蛋
2025-09-19 00:24:18 +08:00
parent 9b831a5730
commit e8b8a405f2
5 changed files with 69 additions and 8 deletions

View File

@@ -188,7 +188,7 @@ public partial class ScriptGroupProject : ObservableObject
else if (Type == "KeyMouse")
{
// 加载并执行
var json = await File.ReadAllTextAsync(Global.Absolute(@$"User\KeyMouseScript\{Name}"));
var json = await File.ReadAllTextAsync(Path.Combine(KeyMouseRecordPageViewModel.ScriptPath, Name));
await KeyMouseMacroPlayer.PlayMacro(json, CancellationContext.Instance.Cts.Token, false);
}
else if (Type == "Pathing")