Tiger Posted July 8, 2008 Posted July 8, 2008 (edited) How can I delete a traymenu Opt("TrayIconDebug", 0) Opt("TrayMenuMode", 1) Opt("TrayOnEventMode", 1) #include <GUIConstants.au3> TrayCreateItem("Delete") TrayItemSetOnEvent(-1, "_delete") TrayCreateItem("Beenden") TrayItemSetOnEvent(-1, "_close") Func _delete() ; Delete the traymenu EndFunc ;==>_delete Func _close() Exit EndFunc ;==>_close While 1 sleep(500) WEnd Edited July 8, 2008 by Tiger My UDFs:- _RegEnumKey
Paulie Posted July 8, 2008 Posted July 8, 2008 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.
Tiger Posted July 8, 2008 Author Posted July 8, 2008 Thanks, but it isn't the right. My UDFs:- _RegEnumKey
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now