title: Handling Context Menu of the taskbar icon with pywinauto
body: <p>I am trying to automate the exiting operation on one of the apps. The app's icon is located in the taskbar. I was successfull in opening that icon's context menu with the modified code that I have found on stackoverflow:</p>
  
  <pre><code>import pywinauto
  from pywinauto.application import Application
  import time
  
  app= "Service is enabled."
  
  app = Application(backend="uia").connect(path="explorer.exe")
  st = app.window(class_name="Shell_TrayWnd")
  t = st.child_window(title="Notification Chevron").wrapper_object()
  t.click()
  
  time.sleep(1)
  
  list_box = Application(backend="uia").connect(class_name="NotifyIconOverflowWindow")
  list_box_win = list_box.window(class_name="NotifyIconOverflowWindow")
  list_box_win.wait('visible', timeout=30, retry_interval=3)
  
  # time.sleep(1)
  
  appOpened= list_box_win.child_window(title = app)
  appOpened.click_input(button = "right")
  </code></pre>
  
  <p>After the execution of the code above I get to the point when the <code>context menu</code> is opened:
  <a href="https://i.stack.imgur.com/FEtxX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FEtxX.png" alt="enter image description here"></a> </p>
  
  <p>The next thing that I want to do is to click on <code>Exit</code>, I have tried doing it by specifying the mouse click coordinates, but I have noticed that the position of the parent icon is changing from time to time.
  What I would like to do is to get the handle on the <code>Exit</code> button and send click automatically.</p>
  
  <p>------<strong>Edit</strong>-------</p>
  
  <p>The icon is located in the hidden icons</p>