def text(max_length = 2048)
      buffer = "\0" * max_length
      length = if is_control?
        SendMessageA(handle, WM_GETTEXT, buffer.length, buffer)
      else
        GetWindowText(handle, buffer, buffer.length)
      end

      length == 0 ? '' : buffer[0..length - 1]
    end
def text(max_length = 2048)
      buffer = "\0" * max_length
      length = if is_control?
        SendMessageA(handle, WM_GETTEXT, buffer.length, buffer)
      else
        GetWindowText(handle, buffer, buffer.length)
      end

      length == 0 ? '' : buffer[0..length - 1]
    end
Window text (GetWindowText or WM_GETTEXT)

 @param [Number] max_length (2048)

 @return [String] of max_length (2048)