Sign in to follow this  
Followers 0
Tiger

Delete TrayMenu

3 posts in this topic

#1 ·  Posted (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 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

Thanks, but it isn't the right.


My UDFs:- _RegEnumKey

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  
Followers 0