I want to open my application from system tray icon. And right click on that system tray icon. It displays one menu list there I want to select one option. The below script works for single click. It presses the icon like(Drive Guard) But to open application from icon on systray it wants double click. How do i get to know the X,Y positions of the icon for using Dbclick methos. Please suggest.
set c=window("nativeclass:=Shell_TrayWnd","regexpwndcl ***:=Shell_TrayWnd","index:=0").WinToolbar("regexp wndclass:=ToolbarWindow32","text:=Notification Area")
msgbox d
For listIndex = 1 to d
e = c.GetItem(listIndex)
if e= "DriveGuard" Then
c.press e
End If