Nomad Posted May 18, 2006 Share Posted May 18, 2006 I am trying to figure out how to add more selection choices to the taskbar icon for when you right-click it. Right now the only choices I see are: Script Paused Exit I would like to add a selection to the taskbar icon which will show the GUI after it has been hidden by: Case $msg = $GUI_EVENT_MINIMIZE GUISetState(@SW_HIDE, $GUIHandle) Obviously that was not every Case under the Select, but enough to show what I'm doing here. I can't seem to find this information in the help menus, but will continue to look. Thanks in advance for any help. Link to comment Share on other sites More sharing options...
GaryFrost Posted May 18, 2006 Share Posted May 18, 2006 Think you'll need beta, and look for Tray Functions SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted May 18, 2006 Share Posted May 18, 2006 there are many approaches, i prefer the set on event method for tray icons #include <Constants.au3> #NoTrayIcon Opt("TrayOnEventMode",1) Opt("TrayMenuMode",1); Default tray menu items (Script Paused/Exit) will not be shown. TraySetClick(16); Only secondary mouse button will show the tray menu. $infoitem = TrayCreateItem("Info") TrayItemSetOnEvent(-1,"ShowInfo") TrayCreateItem("") $exititem = TrayCreateItem("Exit") TrayItemSetOnEvent(-1,"ExitScript") TraySetState() While 1 Sleep(10); Idle loop WEnd Exit ; Functions Func ShowInfo() Msgbox(0,"Info","Tray OnEvent Demo") EndFunc Func ExitScript() Exit EndFunc 8) Link to comment Share on other sites More sharing options...
Nomad Posted May 18, 2006 Author Share Posted May 18, 2006 there are many approaches, i prefer the set on event method for tray icons #include <Constants.au3> #NoTrayIcon Opt("TrayOnEventMode",1) Opt("TrayMenuMode",1); Default tray menu items (Script Paused/Exit) will not be shown. TraySetClick(16); Only secondary mouse button will show the tray menu. $infoitem = TrayCreateItem("Info") TrayItemSetOnEvent(-1,"ShowInfo") TrayCreateItem("") $exititem = TrayCreateItem("Exit") TrayItemSetOnEvent(-1,"ExitScript") TraySetState() While 1 Sleep(10); Idle loop WEnd Exit ; Functions Func ShowInfo() Msgbox(0,"Info","Tray OnEvent Demo") EndFunc Func ExitScript() Exit EndFunc 8) Well, I didn't have beta until now. I've seen many instances where people have been referred to the beta version, so I decided to get it just now. I made sure that is was installed in the correct place on the computer so I could use the "ToggleAU3 Beta.au3" file. But it doesn't appear to be working. The functions you have called out above still do not appear in blue text, and I get an error when I try to execute the script. Is there a different editor that must be used with beta other than the SciTe editor? Link to comment Share on other sites More sharing options...
Nomad Posted May 18, 2006 Author Share Posted May 18, 2006 Ok, got that fixed... I had to re-install SciTe for whatever reason. Code works fine, thanks for the help. 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