Deye

No systray icon at log on

10 posts in this topic

Hi,

I have assigned a program script to launch at logon with Task scheduler.
The program needs to be used also with the systray icon, but the icon wont appear
Off course the program appears as running in task manager but with no icon.

If it has anything to do with compiling with #pragma compile or  #AutoIt3Wrapper for the icon, I have tried both.

Anyone have an idea as to what might cause this or know of a fix ?

ITIA

Share this post


Link to post
Share on other sites



Use TraySetIcon. Have a look in the help if needed for undrstanding.

1 person likes this

Share this post


Link to post
Share on other sites

Thanks but still no luck

I have:

Opt("TrayOnEventMode", 1) ; Use event trapping for tray menu
Opt("TrayMenuMode", 3) ; Default tray menu items will not be shown.

added:  TraySetState($TRAY_ICONSTATE_SHOW)

removed the #NoTrayIcon at top of the script
added: 
#include <TrayConstants.au3>
 

Share this post


Link to post
Share on other sites

@Deye if you just manually run the script I assume the trayicon is created? Just looking for confirmation the issue is only when it is run on startup.

1 person likes this

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

yes.

at logon task. created with Task scheduler

5 minutes ago, JLogan3o13 said:

the issue is only when it is run on startup.

 

Edited by Deye

Share this post


Link to post
Share on other sites

ok just added a slight delay and it fine now 

thanks for the help guys

 

Share this post


Link to post
Share on other sites

Glad you worked it out, that was going to be my suggestion. There is so much going on at startup, I usually add anywhere from a 250-500ms delay


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Hi,

Its been like 10 months and I have noticed I'm still having this issue even when adding a long delay like 12 seconds
On some logons the process will just run without its systray icon. (most of the times it runs as expected.)
Maybe if there was some way to detect its absence then I could probably make the process restart (till the icon appears)

does anyone have some idea of writing a function that will be able do just that ?

Of course any other ideas are most welcome

TIA

Edit: I'm going to try out This function by Melba and see how it goes (Thanks Melba)

Edited by Deye

Share this post


Link to post
Share on other sites

@Deye,

may i suggest trying other methods of running your script at logon?

this has been working for me with no issue whatsoever for years now: add a registry entry for your script in "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run".

you can also try this: put a shortcut in the common "Startup" start menu folder (typically "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" on Windows 7).

1 person likes this

Share this post


Link to post
Share on other sites

orbs,

Thanks for the heads up, Those are most probably, the more correct ways I should have looked into, to begin with.

 

 

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