Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Better way to raise the system tray


  • Please log in to reply
1 reply to this topic
kmcintyre
  • Members
  • 2 posts
  • Last active: Apr 24 2014 05:54 PM
  • Joined: 22 Mar 2014

I'm pretty new to AHK...

I have a script that moves the mouse over the system tray and clicks to raise the tray. (It's actually called the NotifyIconOverflowWindow according to Spy...). I move the mouse with CoordMode = Screen, so absolute coordinates...

This work well most of the time. Sometimes the organization of the system tray changes and the absolute coordinate changes. I know a better way is to somehow get the id for the NotifyIconOverflowWindow and then send it a message, or use relative coordinates to direct a mouse click.

So how do I do that? Code snippet, anyone?

 

Thanks!

Keith



dioxide
  • Members
  • 1 posts
  • Last active: May 01 2014 09:37 PM
  • Joined: 30 Apr 2014

How about the hotkey route?  Win+B will highlight the tray button, and enter or space will open it.  Sorry, I don't have any code to provide you, I just started working with AHK today.  Seems like it would be pretty easy to implement, please let me know if it works for you.