Quantcast
Channel: Windows Automation Snapin for PowerShell
Viewing all articles
Browse latest Browse all 129

New Post: How to send right-click to tray application

$
0
0
Import-Module WASP

## Starting from the tray container, 
Select-UIElement -Class Shell_TrayWnd | 
    ## Pick the real system tray Window 
    Select-UIElement -Class TrayNotifyWnd | 
    ## It has a the Notification Chevron expander button
    ## It also has the "SysPager" which has the icons in it (FYI)
    ## Pick the button and click it:
    Select-UIElement -Name "Notification Chevron" | Invoke-Invoke.Invoke

## Now start from the Overflow window 
Select-UIElement -Name "Notification Overflow" | 
    ## Then find the icon container:
    Select-UIElement -Name "Overflow Notification Area" | 
    ## Pick an icon (in this case, the SkyDrive icon) and click it:
    Select-UIElement -Name "SkyDrive*" | Invoke-Invoke.Invoke

 

That's using the new script module instead of the binary. I'll try to release that version here this week.


Viewing all articles
Browse latest Browse all 129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>