title: Accessing to the button of the Window taskbar (Ie Running applications) with pywinauto
body: <p>I would like to access to buttons that are in window taskbar (like IE, Explorer, ...). I need the automationId of some button. </p>
  
  <p>If I used Visual UI Automation tool, I see that the buttons are in the toolbar "Running Applications" (Class MSTaskListWClass). </p>
  
  <p>(Sorry, I can't post a picture beacause this is my first post) </p>
  
  <p>I try : </p>
  
  <pre><code>&gt;&gt;&gt; taskbar.RunningApplications
  &lt;pywinauto.application.WindowSpecification object at 0x02F5C830&gt;
  &gt;&gt;&gt; taskbar.RunningApplications.children()
  []
  </code></pre>
  
  <p>=> I don't understand, because the running applications taskbar is not empty (at least the current cmd application)</p>
  
  <p>I try also:</p>
  
  <pre><code>from pywinauto.application import Application
  from pywinauto import Desktop
  import pywinauto 
  import re as regex
  
  def dump(o):
      s = ("name %s ClassName %s Hdler %s" % (o.name.encode('utf-8'),o.class_name.encode('utf-8'),hex(o.handle)))
      return s 
  
  # Point d'entree l 1
  l1 = pywinauto.findwindows.find_elements(class_name_re = 'Shell_TrayWnd')
  print("Lg %d - %s" % (len(l1),dump(l1[0])))   
  
  l2 = pywinauto.findwindows.find_elements(class_name_re = 'ReBarWindow32')
  print l2    
  
  shell_TrayWnd = l1[0]
  l3 =  shell_TrayWnd.children()  
  for i in range(len(l3)): 
     if regex.search('MSTaskSwWClass',l3[i].class_name):
        print ("Fuundl3[%2d] %s" % (i, dump(l3[i]))) 
        listButton = l3[i].children()[0]
  
  print("listButton  %s" % (dump(listButton))) 
  print listButton.children()
  </code></pre>
  
  <p>This is the sample problem : the list of running applications seems to be empty. </p>
  
  <p>So my questions are : </p>
  
  <ul>
  <li>Bad usage of pywauto ? </li>
  <li>Are the buttons children of the MSTaskListWClass GUi element ? The Visual UI Automation tool gives 0x00 as Handler for each buttons. This is strange </li>
  <li>Bug in pywinauto ? The problem seems to be in pywinauto 0.61 or 0.65 </li>
  <li>This is not possible to this with pywinauto ? </li>
  <li>If I succeed to access to running application button, is it possible to read the AutomationId field ? </li>
  </ul>
  
  <p>Thanks for ideas or any pointers,
  PHLinux</p>