mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
interface modification and logic optimization
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user