sc4ry Posted June 29, 2007 Share Posted June 29, 2007 (edited) hey, how can i show/hide the tryicon during the script runs? HotKeySet("^!p", "TrayIcon") ;Tray-Icon Func TrayIcon() If Opt("TrayIconHide", 0) Then Opt("TrayIconHide", 1) ElseIf Opt("TrayIconHide", 1) Then Opt("TrayIconHide", 0) EndIf EndFunc that does not work, only, when tray is shown at programs start, it will hide one time, but i cannot show it again. when tray is disabled at start, it won´t be shown for all the time. but i can see for milisec. that the icon is shown, but after that it was hide again. can anybody helps me? EDIT: works fine with 2 hotkeys, but there must be a way to put it in 1 hotkey =) Edited June 29, 2007 by sc4ry Link to comment Share on other sites More sharing options...
Emperor Posted June 29, 2007 Share Posted June 29, 2007 EDIT: works fine with 2 hotkeys, but there must be a way to put it in 1 hotkey =)Func TrayIcon() Opt("TrayIconHide", Not Opt("TrayIconHide", "Default")) EndFunc Link to comment Share on other sites More sharing options...
sc4ry Posted June 29, 2007 Author Share Posted June 29, 2007 hey, thanks emperor, thats what i want .. works great =) thx 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