dakota Posted June 1, 2006 Share Posted June 1, 2006 how do i control what is in the tray icon (menu selections) like if i want it to say exit help and run. What would i do to change it the menu part and the icon?? Link to comment Share on other sites More sharing options...
Valuater Posted June 1, 2006 Share Posted June 1, 2006 straight from help #Include <Constants.au3> #NoTrayIcon Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown. $prefsitem = TrayCreateItem("Preferences") TrayCreateItem("") $aboutitem = TrayCreateItem("About") TrayCreateItem("") $exititem = TrayCreateItem("Exit") TraySetState() While 1 $msg = TrayGetMsg() Select Case $msg = 0 ContinueLoop Case $msg = $prefsitem Msgbox(64, "Preferences:", "OS:" & @OSVersion) Case $msg = $aboutitem Msgbox(64, "About:", "AutoIt3-Tray-sample.") Case $msg = $exititem ExitLoop EndSelect WEnd i prefer the setonevent mode for tray controls... see help 8) Link to comment Share on other sites More sharing options...
dakota Posted June 1, 2006 Author Share Posted June 1, 2006 I get an error: Unknown function name. $prefsitem = TrayCreateItem ("Preferences") I have 3.1.1.0 ?? Link to comment Share on other sites More sharing options...
Valuater Posted June 1, 2006 Share Posted June 1, 2006 you need the beta version of autoithttp://www.autoitscript.com/forum/index.php?showtopic=197178) 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