Code: Select all
f1::
menu, tray, icon, imageres.dll
return
Task Scheduler trigger is at log on
Code: Select all
f1::
menu, tray, icon, imageres.dll
return
Which one is it:000 wrote:not automatically at logon
All of that looks good. As I mentioned earlier, it works perfectly here via the Task Scheduler in v1909, although I did not test it with an "At log on" Trigger. However, I just tested it in a v2004 sandbox with an "At log on" Trigger and was able to confirm your result...it works when run manually but does not work with the "At log on" Trigger. It even works after doing a "Reload This Script" via the context menu. This led me to a theory: Something in the logging on process is clearing hotkey assignments after the script has run. To test the theory, I put in a "Delay task for 30 seconds" in the Advanced Settings of the Trigger...WORKED! Regards, Joe
Interesting! Thanks for letting me know that. Regards, Joe000 wrote:it even works when you delay it for just 1 second
Fascinating theory...sounds very plausible.lexikos wrote:Perhaps the system tray doesn't actually exist at the moment the logon event is raised.
Agreed!lexikos wrote:In any case, I see no way that this could be a bug in AutoHotkey.