def control_get_text(title, control, **kwargs):
    """

    :param title:
    :param control:
    :param kwargs:
    :return:
    """
    text = kwargs.get("text", "")
    buf_size = kwargs.get("buf_size", 256)
    ctrl_text = ctypes.create_unicode_buffer(buf_size)

    AUTO_IT.AU3_ControlGetText(
        LPCWSTR(title), LPCWSTR(text), LPCWSTR(control),
        ctrl_text, INT(buf_size)
    )

    return ctrl_text.value.rstrip()
def control_get_text ( title , control , ** kwargs ) : text = kwargs . get ( "text" , "" ) buf_size = kwargs . get ( "buf_size" , 256 ) ctrl_text = ctypes . create_unicode_buffer ( buf_size ) AUTO_IT . AU3_ControlGetText ( LPCWSTR ( title ) , LPCWSTR ( text ) , LPCWSTR ( control ) , ctrl_text , INT ( buf_size ) ) return ctrl_text . value . rstrip ( )
:param title:
    :param control:
    :param kwargs:
    :return: