interface modification and logic optimization

This commit is contained in:
huiyadanli
2023-10-08 23:56:41 +08:00
parent 88a606cf9f
commit c27ea845eb
12 changed files with 76 additions and 38 deletions

View File

@@ -112,5 +112,11 @@ namespace BetterGenshinImpact.GameTask
var bottom = top + gameScreenRect.Height;
return new RECT(left, top, right, bottom);
}
public static void ActivateWindow(IntPtr hWnd)
{
User32.ShowWindow(hWnd, ShowWindowCommand.SW_RESTORE);
User32.SetForegroundWindow(hWnd);
}
}
}