Jump to content
Sign in to follow this  

Delete TrayMenu

Recommended Posts


How can I delete a traymenu

Opt("TrayIconDebug", 0)
Opt("TrayMenuMode", 1)
Opt("TrayOnEventMode", 1)
#include <GUIConstants.au3>
TrayItemSetOnEvent(-1, "_delete")
TrayItemSetOnEvent(-1, "_close")
Func _delete()
    ; Delete the traymenu
EndFunc   ;==>_delete
Func _close()
EndFunc   ;==>_close
While 1
Edited by Tiger

My UDFs:- _RegEnumKey

Share this post

Link to post
Share on other sites

Several ways:

#NoTrayIcon - This not display a tray icon at all, preventing access to the tray menu

Opt('TrayIconHide',1) - Same as above, except this allows the icon to be turned on and off with the opt.

TrayItemDelete() - This will delete items/menus from the tray menu, i imagine you could just delete them all...

Opt('TrayMenuMode',1) - Removes the "Script Pause" and "Exit" that are originally shown on the tray menu.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.