| View previous topic :: View next topic |
| Author |
Message |
tester8900
Joined: 23 Jan 2006 Posts: 10
|
Posted: Wed Apr 09, 2008 7:01 pm Post subject: Detect Double-Click (or single click) of System Tray Icon |
|
|
| 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 |
|
 |
Razlin
Joined: 05 Nov 2007 Posts: 370 Location: canada
|
Posted: Wed Apr 09, 2008 8:03 pm Post subject: |
|
|
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 |
|
 |
tester8900
Joined: 23 Jan 2006 Posts: 10
|
Posted: Wed Apr 09, 2008 10:42 pm Post subject: |
|
|
| Thanks Razlin, that did the trick! |
|
| Back to top |
|
 |
|