def control_command_by_handle(hwnd, h_ctrl, command, buf_size=256, **kwargs):
    """

    :param hwnd:
    :param h_ctrl:
    :param command:
    :param kwargs:
    :return:
    """
    extra = kwargs.get("extra", "")
    result = ctypes.create_unicode_buffer(buf_size)

    AUTO_IT.AU3_ControlCommandByHandle(
        HWND(hwnd), HWND(h_ctrl), LPCWSTR(command), LPCWSTR(extra), result,
        INT(buf_size))
    return result.value.rstrip()
def control_command_by_handle ( hwnd , h_ctrl , command , buf_size = 256 , ** kwargs ) : extra = kwargs . get ( "extra" , "" ) result = ctypes . create_unicode_buffer ( buf_size ) AUTO_IT . AU3_ControlCommandByHandle ( HWND ( hwnd ) , HWND ( h_ctrl ) , LPCWSTR ( command ) , LPCWSTR ( extra ) , result , INT ( buf_size ) ) return result . value . rstrip ( )
:param hwnd:
    :param h_ctrl:
    :param command:
    :param kwargs:
    :return: