wintools.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:LoLVRSpectate 作者: Fire-Proof 项目源码 文件源码
def window_foreground_loop(timeout=20):
    """ set the windows python console to the foreground (for example when you are working with a fullscreen program) """
    hwnd=int(win32console.GetConsoleWindow())
    while True:
        win32gui.SetWindowPos(hwnd, win32con.HWND_TOPMOST, 0,0,0,0, win32con.SWP_NOMOVE | win32con.SWP_NOSIZE)
        time.sleep(timeout)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号