AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detect Double-Click (or single click) of System Tray Icon

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
tester8900



Joined: 23 Jan 2006
Posts: 10

PostPosted: Wed Apr 09, 2008 7:01 pm    Post subject: Detect Double-Click (or single click) of System Tray Icon Reply with quote

I'm creating an application using Ahk2Exe. When I run it, I get the system tray icon as expected, but my question is how can I run a script when the system tray icon is single-clicked or double-clicked?
Back to top
View user's profile Send private message
Razlin



Joined: 05 Nov 2007
Posts: 370
Location: canada

PostPosted: Wed Apr 09, 2008 8:03 pm    Post subject: Reply with quote

From help under menu section


Quote:
Default [, MenuItemName]: Changes the menu's default item to be MenuItemName and makes that item's font bold (setting a default item in menus other than TRAY is currently purely cosmetic). When the user double-clicks the tray icon, its default menu item is launched. If there is no default, double-clicking has no effect. If MenuItemName is omitted, the effect is the same as having used NoDefault below.

_________________
-=Raz=-
Back to top
View user's profile Send private message
tester8900



Joined: 23 Jan 2006
Posts: 10

PostPosted: Wed Apr 09, 2008 10:42 pm    Post subject: Reply with quote

Thanks Razlin, that did the trick!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group