Windows 7: how to bring a window to the front no matter what other window has focus?

后端 未结 9 1795
走了就别回头了
走了就别回头了 2020-11-28 08:04

I\'m implementing a task-bar replacement, dock-like application-switcher style program. It\'s doing some unique stuff with OpenGL, and with keyboard shortcuts, so the way it

9条回答
  •  庸人自扰
    2020-11-28 08:44

    Late answer, but you can use:

    import win32gui
    hwnd = win32gui.FindWindowEx(0,0,0, "Window Title")
    win32gui.SetForegroundWindow(hwnd)
    

提交回复
热议问题