Sign in to follow this  
Followers 0
Guest bjaber

Working with tray icons...

3 posts in this topic

Hi,

I'm a newbie to AutoIT and I was wondering if I could get some assistance.

I have an application that is running in the tray (as an icon) but not in the taskbar. I can successfully "see" the running window (WinExist), but I want to "right-click" it and select "Exit" from the menu.

I don't think mouse coordinates will work for me as the many thousands of users would have different screen resolutions, task bar placements/sizes, etc.

Is there a way to "activate" a tray icon, right-click it, and then select an entry from the resultant right-click menu?

Kind regards,

--Basim S. Jaber

iPass Inc.

Share this post


Link to post
Share on other sites



Major bummer. So far, I've not been able to find any scripting utility that can (I tried WinBatch and now AutoIT). Anyone have any suggestions?

--Basim

Share this post


Link to post
Share on other sites

There are two reasons why you probably won't find any way to maninpulate a tray icon directly:

1) It's a freaking bitch to write code to do this. Unlike a lot of things, Microsoft did not supply programmers with a way to do this so it requires nasty little hacks and other tricks ending up with a large amount of confusing code for a "simple" feature.

2) 85% (in my experienced at least) of programs that have a tray icon also have a window that can be used to do everything that clicking the icon can do.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0