[ahk v2.1-alpha.6] Directive #HotIf interfering with Menu() ? Topic is solved

Report problems with documented functionality
pedro45_vs
Posts: 39
Joined: 28 Jun 2020, 18:46

[ahk v2.1-alpha.6] Directive #HotIf interfering with Menu() ?

Post by pedro45_vs » 30 Sep 2023, 10:30

Code: Select all

#Requires AutoHotkey v2.1-

m := Menu()
loop 6
    m.add 'menu' A_Index, menuhandler
    
m2 := Menu()
loop 4
    m2.add 'submenu' A_Index, menuhandler
    
m.add 'submenu', m2

menuhandler(item, *) => MsgBox(item)

#HotIf WinActive('ahk_exe msedge.exe')
F1::m.show()
When the directive is active, if the menu is dismissed by clicking out of control, it will no longer appear in the foreground again. It will only appear behind all the windows.

Without the directive, the menu is always displayed in the foreground, in the shipping of all windows.
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: [ahk v2.1-alpha.6] Directive #HotIf interfering with Menu() ?  Topic is solved

Post by lexikos » 17 Dec 2023, 03:17

I could not reproduce this.
Post Reply

Return to “Bug Reports”