PDA

Click to See Complete Forum and Search --> : System Tray Menu Problem


groovydaz
Feb 23rd, 2001, 06:05 AM
Does Anyone know how to bring up the right click menu of an object running in the system tray, so that it has focus and I can sendkeys to it. Or Do you know how i can access one of the commands from this menu.

Currently I am trying ot achieve my aim by setting the mouse courser to the icon, right clicking and sending keys, this works which is great until i run it on a different machine, or add a new systray icon, changing the co-ords of my icon, any suggestions on how to achieve the coords of an icon on thesystray?

Failing that, maybe a way to display a program in the system tray, as if double clicking it.

I cant see that there is a handle for the program, nor it existing as an element of the systray. The handle of the window also changes everytime a program is opened then closed (but remains running in systray) and then reopened.



Thanks in advance.
Darren.