Цитата:
Сообщение от Trampl1n
Ладно, тест я провалил. Ну и как тогда ?
|
У меня в игре (на C# + Python) сделано так:
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
private static extern bool SetWindowTextW(IntPtr hWnd, string lpString);
[DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
public static void SetTitle(string oldTitle, string title)
{
IntPtr hWnd = FindWindow(null, oldTitle);
SetWindowTextW(hWnd, title);
}