rstolfa Posted November 30, 2005 Share Posted November 30, 2005 Hello all, I am trying to setup a GUI-less application that needs a "context menu" from the TrayIcon. Is there a simple code snippit that someone could forward my way? Thanks in advance, Roland Link to comment Share on other sites More sharing options...
BigDod Posted November 30, 2005 Share Posted November 30, 2005 Hello all,I am trying to setup a GUI-less application that needs a "context menu" from the TrayIcon. Is there a simple code snippit that someone could forward my way?Thanks in advance,RolandSee TrayCreateMenu in helpfile. Remember to look at example. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Valuater Posted November 30, 2005 Share Posted November 30, 2005 (edited) herte is a format opt("TrayMenuMode", 1) opt("TrayOnEventMode", 1) $upgrade_tray = TrayCreateItem("Visit " & $Company & " On-Line Now!") TrayItemSetOnEvent(-1, "Set_Update") TrayCreateItem("") $hide_tray = TrayCreateItem("Listen to " & $Load) TrayItemSetOnEvent(-1, "Set_Play") TrayCreateItem("") $show_tray = TrayCreateItem("Show On-Line Radio") TrayItemSetOnEvent(-1, "Set_Show") TrayCreateItem("") $exit_tray = TrayCreateItem("Exit On-Line Radio") TrayItemSetOnEvent(-1, "Set_Exit") TraySetState() and the functions Func Set_Update() Run(@ComSpec & " /c Start " & $Company_Site, "", @SW_HIDE) EndFunc ;==>Set_Update Func Set_Show() GUISetState(@SW_SHOW, $E_Music) EndFunc ;==>Set_Show Func Set_Play() $E_Check = 1 EndFunc ;==>Set_Play Func Set_Exit() SoundSetWaveVolume($save_level) Exit EndFunc ;==>Set_Exit 8) Edited November 30, 2005 by Valuater Link to comment Share on other sites More sharing options...
rstolfa Posted November 30, 2005 Author Share Posted November 30, 2005 See TrayCreateMenu in helpfile. Remember to look at example.Sorry to be a nubie, but which helpfile? The .chm that came with my 3.1.1.0 build doesn't show this as an option. Is there a separate include or some such that I need to use? Any and all assistance you can provide would be greatly appreciated. Link to comment Share on other sites More sharing options...
Valuater Posted November 30, 2005 Share Posted November 30, 2005 You need the beta version.. its herehttp://www.autoitscript.com/forum/index.php?showtopic=10256#very stable too8) Link to comment Share on other sites More sharing options...
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