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
tray menu disappear Topic is solved
Re: tray menu disappear
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
use window spy , the Mouse position is diffrent when left click/right click on tray
- Attachments
-
- right click on tray
- 2.png (23.47 KiB) Viewed 454 times
-
- left click on tray
- 1.png (22.35 KiB) Viewed 454 times
Re: tray menu disappear
When AHK gui dialog is hidden, the tray menu work well, but if dialog in show , the tray menu will disappear
Re: tray menu disappear
"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.
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.
Re: tray menu disappear Topic is solved
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
Clicking the tray menu is invalid and does not pop up a menu
Who is online
Users browsing this forum: No registered users and 36 guests