Jump to content
Sign in to follow this  

how to put #notrayicon inside of an IF?

Recommended Posts

You could always hide the icon with #NoTrayIcon then in your code where you'd want it to show use

AutoItSetOption("TrayIconHide", 0)

You could also change the 0 to 1 and put that in your if statement, but the icon would flash and then go away there.

Share this post

Link to post
Share on other sites

No, I don't think that will work because

Windows needs to know what it is doing with a program (and it's icon) the instant the program is started. (does it show an icon, which icon? does it not show an icon?)

trying to put #NoTrayIcon later in the script means that windows would have to run your program partially before finding out what it needs to do with the icon.

(my guess as to how it would work)

You may have to use

Opt("TrayIconHide", 1) to hide

Opt("TrayIconHide", 0) to unhide

But the icon will show briefly until this line is executed.


Wow... Way too slow.

Edited by kaotkbliss



My Android cat and mouse game

We're gonna need another Timmy!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...