tray menu disappear Topic is solved

Report problems with documented functionality
pattazl
Posts: 4
Joined: 20 Feb 2024, 22:14

tray menu disappear

20 Feb 2024, 22:23

environment:
1. win11
2. have 2 monitors ( monitor 1, monitor 2)
3. AHK V1 / V2

condition:
1. set monitor 2 as main monitor
2. move AHK gui dialog to monitor 1

bug:
AHK system tray menu disappear
pattazl
Posts: 4
Joined: 20 Feb 2024, 22:14

Re: tray menu disappear

21 Feb 2024, 02:03

Monitor1 is the default main monitor, set monitor 2 as main monitor
use window spy , the Mouse position is diffrent when left click/right click on tray
Attachments
2.png
right click on tray
2.png (23.47 KiB) Viewed 454 times
1.png
left click on tray
1.png (22.35 KiB) Viewed 454 times
pattazl
Posts: 4
Joined: 20 Feb 2024, 22:14

Re: tray menu disappear

22 Feb 2024, 01:52

When AHK gui dialog is hidden, the tray menu work well, but if dialog in show , the tray menu will disappear
lexikos
Posts: 9780
Joined: 30 Sep 2013, 04:07
Contact:

Re: tray menu disappear

01 Mar 2024, 00:11

"tray menu [will] disappear" makes no sense to me. If the tray menu is visible, any attempt to interact with any other window, such as to move the GUI, would be expected to cause the tray menu to disappear, because it has lost focus. If the tray menu wasn't already visible, it can't disappear.

I guess you mean that under those conditions, the tray menu will not appear when you right click on the icon.

I replicated the conditions you described and was unable to produce any unexpected or abnormal behaviour. The tray menu is correctly shown at the mouse pointer's current location regardless of which screen the GUI is on.

The "Window" mouse position is relative to the active window. If you right click on the tray icon, the script activates its own window in order to give the tray menu focus. In other words, the "Window" mouse position becomes relative to the script's window instead of the taskbar.
pattazl
Posts: 4
Joined: 20 Feb 2024, 22:14

Re: tray menu disappear  Topic is solved

09 Mar 2024, 09:51

After replacing my laptop, I couldn't reproduce it, and I don't know the root cause. Next time, I will record a video to show it .
Clicking the tray menu is invalid and does not pop up a menu :(

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 36 guests