title: pywinauto - access submenu from tray
body: <p>I am trying to access a submenu from a tray item.</p>
  
  <p>This is how I click on a menu:</p>
  
  <pre><code>import pywinauto
  from pywinauto import taskbar
  app = pywinauto.application.Application()
  taskbar.RightClickSystemTrayIcon('App tray icon', exact=True)
  app.PopupMenu.MenuItem("SomeMenuItem").ClickInput()  # Clicks an item from the app's main tray menu
  </code></pre>
  
  <p>I tried using various functions from the pywinauto menuwrapper docs, but without success.
  Is it possible that these functions only work for application menus?:
  <a href="https://pywinauto.github.io/docs/code/pywinauto.controls.menuwrapper.html" rel="nofollow noreferrer">https://pywinauto.github.io/docs/code/pywinauto.controls.menuwrapper.html</a></p>
  
  <p>Here is an example of a submenu type that I want to access:</p>
  
  <p><a href="https://i.stack.imgur.com/xRR8O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xRR8O.png" alt="enter image description here"></a></p>