Bug in Menu, ..., Insert, ... ? Topic is solved

Report problems with documented functionality
just me
Posts: 9451
Joined: 02 Oct 2013, 08:51
Location: Germany

Bug in Menu, ..., Insert, ... ?

17 May 2016, 10:30

AHK 1.1.23.06 on Win 10 Pro x64:

Code: Select all

#NoEnv

HandlerFunc := Func("MenuHandler").Bind("Bingo!")
Menu, MyMenu, Add, FirstItem, % HandlerFunc
Menu, MyMenu, Insert, FirstItem, SecondItem, % HandlerFunc
Menu, MyMenu, Show
ExitApp

MenuHandler(Param) {
   MsgBox, 0, MenuHandler, %A_ThisMenuItem% with Param = %Param%
}

Code: Select all

---------------------------
C4079502.ahk
---------------------------
Error:  Target label does not exist.

Specifically: SecondItem

	Line#
	003: HandlerFunc := Func("MenuHandler").Bind("Bingo!")
	004: Menu,MyMenu,Add,FirstItem,HandlerFunc
--->	005: Menu,MyMenu,Insert,FirstItem,SecondItem,HandlerFunc
	006: Menu,MyMenu,Show
	007: ExitApp
	009: {
	010: MsgBox,0,MenuHandler,%A_ThisMenuItem% with Param = %Param%
	011: }
	012: Exit
	013: Exit

The current thread will exit.
---------------------------
OK   
---------------------------
Coco
Posts: 771
Joined: 29 Sep 2013, 20:37
Contact:

Re: Bug in Menu, ..., Insert, ... ?

17 May 2016, 10:59

Confirmed, getting the same error on AHK v1.1.23.06
just me
Posts: 9451
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Bug in Menu, ..., Insert, ... ?

19 May 2016, 04:26

*WinSet, Top*
Coco
Posts: 771
Joined: 29 Sep 2013, 20:37
Contact:

Re: Bug in Menu, ..., Insert, ... ?

19 May 2016, 11:06

Should probably move this to "Bugs" for visibility? Lexikos might have overlooked the post.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Bug in Menu, ..., Insert, ... ?  Topic is solved

20 May 2016, 00:52

Fixed in v1.1.23.07.

I haven't been visiting often or long enough to keep up with Ask for Help.
just me
Posts: 9451
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Bug in Menu, ..., Insert, ... ?

20 May 2016, 01:09

Thanks!

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 65 guests