t := new Test Class Test { __New(){ this.initGui() this.initComponents() } initGui(){ Gui, Show, x127 y87 h379 w479, Test return } initComponents(){ global Gui, Add, Button, x12 y339 w130 h30 , Test } initActions(){ ButtonTest: MsgBox clicked test button this.test() return } test(){ MsgBox test button alert 2 } }
the button is calling the subroutine inside of initActions, which is calling the class function test(), however this does not activate on button press
how can i make this test() function activate?
I currently get output:
clicked test button
but i want output in 2 message boxes
clicked test button
test button alert 2