funcs_any_win.py 文件源码

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

项目:petronia 作者: groboclown 项目源码 文件源码
def window__border_rectangle(hwnd):
    """
    The outer border size and position of the window

    :param hwnd:
    :return: a dict with the keys 'x', 'y', 'width', 'height',
        'left', 'right', 'top', 'bottom'
    """
    rect = wintypes.RECT()
    res = windll.user32.GetWindowRect(hwnd, byref(rect))
    if res == 0:
        raise WinError()
    return _rect_to_dict(rect)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号