Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

find icon on system tray?

If you have a question or need help, this is the place to be.
Post Reply
ajbowman
Posts: 1
Joined: Tue Nov 18, 2008 4:08 am

find icon on system tray?

Post by ajbowman »

Is it possible to find an icon on the system tray, then right click on it, etc?

Specifically I am trying to write a macro to control Pandora Desktop. It minimizes to the system tray and if I could find it and right click I can control from my remote. I can use absolute move, but the icon isn't always in the same place. Maybe there is a way to force it to the same spot every time???

I would also be OK with using OpenPadora or a similar wrapper if someone has already written the macros... but I haven't found one yet. I am open to suggestions.
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: find icon on system tray?

Post by jinxdone »

You can do this sort of thing with the "SendMessage" action. Basically it sends an internal windows api message (such as button being pressed) to the application. If you approach it this way it doesn't matter where the program window is or what size it is. Allthough you would need to find out the name of the application, the id of the control you want to "push" and event to send.

There are two downsides to this.. First it's not easy to fish the right events, there are some good message monitoring programs out there though. Secondly, a new version of the program could possibly break your macros if the coder has decided to change the id's for some reason.

Oh, and ofcourse if you do that you dont have to open the program window or such, the buttons and controls work even if the window is not visible on screen.

-jinxdone
Post Reply