这就是个windows SDk的编程问题
#coding:utf-8
from ctypes import *
WM_SETTEXT = 0x000C
def ChangeActiveWindowTtile():
hwnd=windll.user32.FindWindowW(u"Notepad",u"无标题 - 记事本")
if (windll.user32.IsWindow(hwnd)):
windll.user32.SendMessageW(hwnd,WM_SETTEXT,None,u"我是标题")
ChangeActiveWindowTtile()