Double goto
sebastieng-oss opened this issue · 1 comments
V1:
gui, add, text,section ; Save this control's position and start a new section.
Gui, Add, Button, w300 h35 gbaq ,
Gui, Add, Button, w300 h35 gbay , aaa
Gui, Show,, Macro
Return
goto somewhere
V2 (Converted):
myGui := Gui()
myGui.add("text", "section") ; Save this control's position and start a new section.
ogcButton := myGui.Add("Button", "w300 h35")
ogcButton.OnEvent("Click", baq.Bind("Normal"))
ogcButtonaaa := myGui.Add("Button", "w300 h35", "aaa")
ogcButtonaaa.OnEvent("Click", bay.Bind("Normal"))
myGui.Title := "Macro"
myGui.Show()
Return
Goto("somewhere")
Goto("somewhere")
V2 (Expected):
myGui := Gui()
myGui.add("text", "section") ; Save this control's position and start a new section.
ogcButton := myGui.Add("Button", "w300 h35")
ogcButton.OnEvent("Click", baq.Bind("Normal"))
ogcButtonaaa := myGui.Add("Button", "w300 h35", "aaa")
ogcButtonaaa.OnEvent("Click", bay.Bind("Normal"))
myGui.Title := "Macro"
myGui.Show()
Return
Goto("somewhere")
Each time, I add "Gui, Add, Button", a new "goto" appaers