Jump to content

show/hide trayicon during script runs


Recommended Posts

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 by sc4ry
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...