title: How to click on a button in an app from the status bar with Apple Script
body: <p><a href="https://i.stack.imgur.com/5EsH1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5EsH1.png" alt="enter image description here"></a></p>
  
  <p>I have see how to click on menu items but this application does not have those. I was wondering how to click on the button Connect</p>
  
  <p>I tried <code>click at {818, 320}</code> but it did not work</p>
  
  <p>Here is the scrip, i was able to open the app with this </p>
  
  <pre><code>tell application "System Events"
      tell UI element "Hotspot Shield"
          tell menu bar item 1 of menu bar 2
              click
              delay 2
              get the actions of button "Connect"
          end tell
      end tell
  end tell
  </code></pre>