utils.py 文件源码

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

项目:autoops_for_win 作者: qiueer 项目源码 文件源码
def GetWinByTitle(cls, clsname=None, win_title=None, is_foreground=True):
        """
        FindWindow? ????
        """
        whd = 0
        if clsname and win_title:
            whd=win32gui.FindWindow(clsname, win_title)
        elif clsname:
            whd=win32gui.FindWindow(clsname, None)
        elif win_title:
            whd=win32gui.FindWindow(None, win_title)
        if whd and is_foreground == True:
            cls.SetAsForegroundWindow(whd)
        return whd
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号