import win32clipboard as w #剪贴板import win32api,win32gui,win32con,timehwnd=335330通过spy++ Lite 进行识别win32gui.SetForegroundWindow(hwnd)# 指定句柄设置为前台,也就是激活