lottafreetime22 Posted January 5, 2007 Posted January 5, 2007 (edited) rm Edited July 31, 2020 by lottafreetime22 rm
SAG Posted January 5, 2007 Posted January 5, 2007 You didn't list your entire code but this example using your code works for me (on XP SP1). #include <GUIConstants.au3> #NoTrayIcon Opt("TrayOnEventMode",1) Opt("TrayMenuMode",1) ; Default tray menu items TrayItemSetOnEvent(TrayCreateItem("Settings"), "SettingsDialog") TrayItemSetOnEvent(TrayCreateItem("Go there now"), "VisitSite") TrayCreateItem("") TrayItemSetOnEvent(TrayCreateItem("Uninstall"), "Uninstall") TrayCreateItem("") TrayItemSetOnEvent(TrayCreateItem("About"), "AboutDialog") TrayItemSetOnEvent(TrayCreateItem("Exit"), "Close") TraySetState() GUICreate("Gui", 300, 100) GUISetState () ; show form While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE; exit Exit EndSwitch WEnd
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