title: pywinauto - find/read text in a dialog/popup that is not part of any control of the dialog
body: <p>I am trying to read the text "This return is due on or before" from below dialog/popup of an application that I am trying to do some automation on using pywinauto, I am able to automate other controls on this pop-up, i.e. OK/Close/etc., just not able to get to the "text" and i have tried below code, but it seems this text is not part of any control of the dialog, so is there any other way i can get to the text?
  <a href="https://i.stack.imgur.com/Vidt0.jpg" rel="nofollow noreferrer">Dialog/popup</a></p>
  
  <p>Inspect.exe shows this for the popup <a href="https://i.stack.imgur.com/TtXbn.jpg" rel="nofollow noreferrer">inspect_exe_data</a></p>
  
  <p>I have tried below code so far:</p>
  
  <pre><code>from pywinauto.application import Application
  app = Application(backend="win32").start("app.exe")
  #This is the dialog with the text i am after
  dialog=app.RTI
  dialog.window_text()
  dialog.texts()
  dialog.print_control_identifiers()
  dialog.children()
  dialog.descendants()
  for child in dialog.descendants():
   print (child.window_text())
   print (child.texts())
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>&gt;&gt;&gt; dialog.window_text()
  'RTI'
  &gt;&gt;&gt; dialog.texts()
  ['RTI']
  &gt;&gt;&gt; dialog.print_control_identifiers()
  Control Identifiers:
  
  Tdlg_askbox - 'RTI'    (L711, T344, R1208, B482)
  ['Tdlg_askbox', 'RTI', 'RTITdlg_askbox']
  child_window(title="RTI", class_name="Tdlg_askbox")
     |
     | ComboBox - ''    (L723, T503, R1196, B535)
     | ['RTIComboBox', 'ComboBox']
     | child_window(class_name="TComboBox")
     |
     | Edit - ''    (L723, T465, R1196, B497)
     | ['Edit', 'RTIEdit']
     | child_window(class_name="TEdit")
     |
     | CheckBox - 'Don't ask me this again'    (L723, T641, R1196, B667)
     | ['CheckBox', "Don't ask me this againCheckBox", "Don't ask me this again"]
     | child_window(title="Don't ask me this again", class_name="TCheckBox")
     |
     | Button - 'Help'    (L843, T432, R956, B470)
     | ['Help', 'HelpButton', 'Button', 'Button0', 'Button1']
     | child_window(title="Help", class_name="TButton")
     |
     | Button - 'Cancel'    (L723, T596, R836, B634)
     | ['Cancel', 'CancelButton', 'Button2']
     | child_window(title="Cancel", class_name="TButton")
     |
     | Button - 'OK'    (L963, T432, R1076, B470)
     | ['OK', 'Button3', 'OKButton']
     | child_window(title="OK", class_name="TButton")
     |
     | Button - '&amp;No'    (L963, T551, R1076, B589)
     | ['&amp;NoButton', 'Button4', '&amp;No']
     | child_window(title="&amp;No", class_name="TButton")
     |
     | Button - '&amp;Yes'    (L843, T551, R956, B589)
     | ['&amp;Yes', '&amp;YesButton', 'Button5']
     | child_window(title="&amp;Yes", class_name="TButton")
  &gt;&gt;&gt; dialog.children()
  [&lt;win32_controls.ComboBoxWrapper - '', ComboBox, 265638&gt;, &lt;win32_controls.EditWrapper - '', Edit, 265636&gt;, &lt;win32_controls.ButtonWrapper - 'Don't ask me this again', CheckBox, 265634&gt;, &lt;win32_controls.ButtonWrapper - 'Help', Button, 265632&gt;, &lt;win32_controls.ButtonWrapper - 'Cancel', Button, 265630&gt;, &lt;win32_controls.ButtonWrapper - 'OK', Button, 265628&gt;, &lt;win32_controls.ButtonWrapper - '&amp;No', Button, 265626&gt;, &lt;win32_controls.ButtonWrapper - '&amp;Yes', Button, 265624&gt;]
  &gt;&gt;&gt; dialog.descendants()
  [&lt;win32_controls.ComboBoxWrapper - '', ComboBox, 265638&gt;, &lt;win32_controls.EditWrapper - '', Edit, 265636&gt;, &lt;win32_controls.ButtonWrapper - 'Don't ask me this again', CheckBox, 265634&gt;, &lt;win32_controls.ButtonWrapper - 'Help', Button, 265632&gt;, &lt;win32_controls.ButtonWrapper - 'Cancel', Button, 265630&gt;, &lt;win32_controls.ButtonWrapper - 'OK', Button, 265628&gt;, &lt;win32_controls.ButtonWrapper - '&amp;No', Button, 265626&gt;, &lt;win32_controls.ButtonWrapper - '&amp;Yes', Button, 265624&gt;]
  &gt;&gt;&gt; for child in dialog.descendants():
  ...  print (child.window_text())
  ...  print (child.texts())
  ...
  
  ['']
  
  ['', '']
  Don't ask me this again
  ["Don't ask me this again"]
  Help
  ['Help']
  Cancel
  ['Cancel']
  OK
  ['OK']
  &amp;No
  ['&amp;No']
  &amp;Yes
  ['&amp;Yes']
  </code></pre>