Sign in to follow this  
Followers 0
sc4ry

show/hide trayicon during script runs

3 posts in this topic

#1 ·  Posted (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 by sc4ry

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

hey, thanks emperor, thats what i want .. works great =)

thx

Share this post


Link to post
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
Sign in to follow this  
Followers 0