(self, parent=True, console=False)
Get the handle of the currently focused window.
Get the handle of the currently focused window.
Get the handle of the currently focused window .
def __init__(self, parent=True, console=False):
        """Get the handle of the currently focused window."""
        self.hwnd = get_window_handle(parent, console)
        self.pid = win32process.GetWindowThreadProcessId(self.hwnd)[1]
def __init__ ( self , parent = True , console = False ) : self . hwnd = get_window_handle ( parent , console ) self . pid = win32process . GetWindowThreadProcessId ( self . hwnd ) [ 1 ]