Looking for feedback from TrayIcon library users on Windows 11

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Looking for feedback from TrayIcon library users on Windows 11

Post by JoeWinograd » 08 Dec 2022, 03:27

Hi Folks,

I posted this issue at the TrayIcon library thread, but decided to post this separate thread to see if anyone else is experiencing the same problem on Windows 11. My scripts call TrayIcon_Button, TrayIcon_GetInfo, TrayIcon_Move, and TrayIcon_Remove. They were working fine in prior W11 releases, but no longer work in Version 22H2, Build 22623.1020 (I don't know if that's the first release where they stopped working, but it's the first time that I noticed it).

My guess is that it's because the TB_ message calls (TBBUTTON structure) that the TrayIcon library makes are no longer working (btw, they continue to work fine in W10 22H2). Those calls are TB_BUTTONCOUNT, TB_DELETEBUTTON, TB_GETBUTTON, and TB_MOVEBUTTON. I plan to submit this issue to Microsoft, but want to get some feedback first from other members.

Are you seeing the problem? If so, do you agree with my conjecture on why it's happening? Or do you have other ideas on the reason? Thanks much, Joe

User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by JoeWinograd » 10 Dec 2022, 15:15

Bump...anyone? Thanks!

And maybe you can help here:
viewtopic.php?f=76&t=111398

Thanks again!

luizrocha
Posts: 3
Joined: 08 Dec 2022, 16:59

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by luizrocha » 20 Dec 2022, 16:18

Wait for a help with this to. Gratly appretiated.

User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by JoeWinograd » 10 Jan 2023, 20:30

luizrocha wrote:Wait for a help with this to.
Some alternatives/work-arounds beginning at this forum post:

viewtopic.php?f=23&t=111398#p499459

Regards, Joe

potscrubber
Posts: 36
Joined: 09 Sep 2017, 01:51
Location: Aotearoa
Contact:

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by potscrubber » 19 Jan 2023, 21:53

JoeWinograd wrote:
10 Jan 2023, 20:30
luizrocha wrote:Wait for a help with this to.
Some alternatives/work-arounds beginning at this forum post:

viewtopic.php?f=23&t=111398#p499459

Regards, Joe
Hi Joe

I also found this helpful function / class linked in this post here. It works well on Win 10. I'm not currently able to test on Win 11. Are you?

User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by JoeWinograd » 20 Jan 2023, 22:57

Hi @potscrubber,
That's the same TrayIcon library that I've been talking about the whole time (Original Author: Sean, Update Author: Cyruz, Mod Author: Fanatic Guru). It works great in W10 (and earlier), as well as W11 through Build 22621, but does not work in Build 22623, the cause of which lexikos explains in this post. Regards, Joe

potscrubber
Posts: 36
Joined: 09 Sep 2017, 01:51
Location: Aotearoa
Contact:

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by potscrubber » 20 Jan 2023, 23:06

JoeWinograd wrote:
20 Jan 2023, 22:57
Hi @potscrubber,
That's the same TrayIcon library that I've been talking about the whole time (Original Author: Sean, Update Author: Cyruz, Mod Author: Fanatic Guru). It works great in W10 (and earlier), as well as W11 through Build 22621, but does not work in Build 22623, the cause of which lexikos explains in this post. Regards, Joe
Hi Joe.. I follow most of that (though haven't grokked lexikos's full explanation yet). But the link I supplied was to a post by teadrinker, above the Trayicon library evolution. teadrinker's code seems to use a different method?

User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by JoeWinograd » 20 Jan 2023, 23:28

Ah, sorry, I focused on the FanaticGuru post under the teadrinker post. I'm not in a position to work on W11 now. I'll look into it as soon as possible, but it may be a week or two. Thanks for the idea! Regards, Joe

potscrubber
Posts: 36
Joined: 09 Sep 2017, 01:51
Location: Aotearoa
Contact:

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by potscrubber » 23 Jan 2023, 18:24

Last night I updated my office laptop to Win 11 (in place), did a quick test of the code by teadrinker, it seemed to work flawlessly. Then I hurriedly put my Win 10 image back! Thanks @teadrinker !

User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by JoeWinograd » 23 Jan 2023, 19:47

potscrubber wrote:updated my office laptop to Win 11
My guess is that you updated to Build 22621, where teadrinker's code works great. However, it does not work in Build 22623 (where it gets the MsgBox, Not Found) for the same reason that the TrayIcon library does not work (as lexikos explained). I don't understand all of teadrinker's code, but a quick look shows that it relies on the Shell_TrayWnd and NotifyIconOverflowWindow toolbars, which are the issues that lexikos discussed. But I really appreciate your efforts on this! Regards, Joe

potscrubber
Posts: 36
Joined: 09 Sep 2017, 01:51
Location: Aotearoa
Contact:

Re: Looking for feedback from TrayIcon library users on Windows 11

Post by potscrubber » 23 Jan 2023, 19:55

JoeWinograd wrote:
23 Jan 2023, 19:47
potscrubber wrote:updated my office laptop to Win 11
My guess is that you updated to Build 22621, where teadrinker's code works great. However, it does not work in Build 22623 (where it gets the MsgBox, Not Found) for the same reason that the TrayIcon library does not work (as lexikos explained). I don't understand all of teadrinker's code, but a quick look shows that it relies on the Shell_TrayWnd and NotifyIconOverflowWindow toolbars, which are the issues that lexikos discussed. But I really appreciate your efforts on this! Regards, Joe
Oh bugger. I know it was 22H2. But I didn't look at the build number :(

Post Reply

Return to “Ask for Help (v1)”