title: How to print the Control identifiers of a window to a document in Pywinauto
body: <p>I am trying to automate installation of an application using Pywinauto.During the installation the last window shows some warning or error messages in few cases and later the system begins to restart. My objective is to capture the the Warning messages which is possible by </p>
  
  <pre><code>app.top_window_()._ctrl_identifiers()
  np.Notepad.Edit.TypeKeys(a,with_spaces=True, with_tabs=True, with_newlines=True)
  </code></pre>
  
  <p>This is returning a list which contains all the messages of the screen.
  Second line is where I am trying to print the list object in the notepad, but it's throwing some exceptions</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#37&gt;", line 1, in &lt;module&gt;
      np.Notepad.Edit.TypeKeys(a,with_spaces=True, with_tabs=True, with_newlines=True)
    File "C:\Python26\pywinauto\controls\HwndWrapper.py", line 950, in TypeKeys
      turn_off_numlock)
    File "C:\Python26\pywinauto\SendKeysCtypes.py", line 629, in SendKeys
      keys = parse_keys(keys, with_spaces, with_tabs, with_newlines)
    File "C:\Python26\pywinauto\SendKeysCtypes.py", line 538, in parse_keys
      c = string[index]
  KeyError: 0
  </code></pre>
  
  <p>Could anyone let me know how to do this or if there is other way in which this can be handled with an example?</p>