Hi Meghal
Then I misunderstood you.
Please see enclosed BO where I have attempted to solve your issue. You can spy ""Windows"" by inputting ""explorer"" in ""Enter the Windows process name of the target application"". That said, spying windows elements, such as the system tray, is not an easy task.
In my BO I start by clicking the system tray and counting the tray icons, so that I know how many times we have to loop. The we read the system tray elements by inputting the ID dynamically. For some reason it always finds it at the second attempt, instead of at the correct inputted ID, that corresponds to the icon. However the BO works and finds the icon, I have attempted to input icon text that doesn't exist in my system tray.
Please note the params (parameters) defined in the ""Read system tray element"" reader stage of the BO.
But this doesn't help you if the person has docked the icon (Show icon) between the system tray and the ""show desktop"" button. You could attempt to spy these icons, if you can somehow count how many the user has docked in this area.
The correct way would be to spy the ""Controlpanel\All elements in controlpanel\Notification Area Icons"", but this is not an easy task either.
Unfortunately can't help you with the Mcafee spy issue.
Please see enclosed file.
Good luck.
BR,
Mustafa