When you right click the system tray icon it gives a bunch of options, I want to know if its possible to add some
This would make my scripts a lot more powerful and useful than before.
Can this be done? any google searches led to changing the icon picture itself which is not what I want.
Adding Options to the System tray icon Topic is solved
- sporefreak
- Posts: 21
- Joined: 23 Dec 2015, 02:38
Re: Adding Options to the System tray icon
Look at the menu command.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: Adding Options to the System tray icon Topic is solved
Quick and dirty
Code: Select all
#NoEnv
#Persistent
;------------------------------------------------------------------------------
; SET TRAY-MENU
;------------------------------------------------------------------------------
Menu, Tray, Standard
;Menu, Tray, NoStandard ; to remove default menu
Menu, Tray, Add
Menu, Tray, Add, Run startup, startup
Menu, Tray, Add, Launch Settings Gui, settings
Menu, Tray, Add
Menu, Tray, Add, Close, CloseGui
Menu, Tray, Click, 1
Menu, Tray, Tip, Your program description
return
startup:
msgbox, startup
return
settings:
msgbox, settings
return
CloseGui:
ExitApp
return
- sporefreak
- Posts: 21
- Joined: 23 Dec 2015, 02:38
Re: Adding Options to the System tray icon
So I guess I dont understand why #Persistent is there?
I did test it with and without it and the script seemed to work fine.
Is there a reason its there or is it just preference
I did test it with and without it and the script seemed to work fine.
Is there a reason its there or is it just preference
robmar-zl wrote:Quick and dirty
Code: Select all
#NoEnv #Persistent ;------------------------------------------------------------------------------ ; SET TRAY-MENU ;------------------------------------------------------------------------------ Menu, Tray, Standard ;Menu, Tray, NoStandard ; to remove default menu Menu, Tray, Add Menu, Tray, Add, Run startup, startup Menu, Tray, Add, Launch Settings Gui, settings Menu, Tray, Add Menu, Tray, Add, Close, CloseGui Menu, Tray, Click, 1 Menu, Tray, Tip, Your program description return startup: msgbox, startup return settings: msgbox, settings return CloseGui: ExitApp return
Re: Adding Options to the System tray icon
I'm using Windows 10 and without #Persistent the script keeps not running. You don't need it in Windows 7, XP or any other version.
- sporefreak
- Posts: 21
- Joined: 23 Dec 2015, 02:38
Re: Adding Options to the System tray icon
Thats odd, I dont use it and it still works finerobmar-zl wrote:I'm using Windows 10 and without #Persistent the script keeps not running. You don't need it in Windows 7, XP or any other version.
Who is online
Users browsing this forum: Endion, Insanibaccha, mikeyww, PsysimSV, uchihito and 206 guests