关于Python user32.dll SetWindowPos调用无效的问题的解决方案 我刚开始时使用了以下代码,但调用无效 # -*- coding: utf-8 -*- import ctypes obj = ctypes.WinDLL('user32.dll') hWnd = obj.GetForegroundWindow() obj.SetForegroundWindow(hWnd) obj.SetWindowPos(hWnd,