It is really struggling to configure the system to be able to work with only the left mouse button.
As an AHK developer, my first challenge was to popup the script's tray menu by clicking with the left mouse button on the script's tray icon.
Here is my solution:
Menu Tray, Click, 1 ; Enable single click action on tray Gosub AddMenu ; Add new default menu Return ; End of initialization ShowMenu: Menu Tray, Delete, ShowMenu ; Delete temporary default menu item MouseGetPos MouseX, MouseY ; Get current mouse position Menu Tray, Show, %MouseX%, % MouseY - 10 ; Show menu a little upper to enable next click on icon AddMenu: Menu Tray, Add, ShowMenu ; Add temporary menu item Menu Tray, Default, ShowMenu ; Set to default ReturnAfter the menu appears the default menu item restores to Open standard menu.
So clicking on the tray icon again while the menu is shown allows you to show the script's main window (which is doubleclick afterall).
The temporary menu item remains invisible as long as you are using the left mouse button on tray icon.
For general purpose, this script can be used to assign two different menus for the script's tray icon: One with the left click, one with the right.
Just replace the 8th line in the original script to:
Menu MyLeftClickMenu, Show