Page 1 of 1

Help about buttons

Posted: 26 Oct 2017, 08:19
by HIAC

Code: Select all

...
Gui, Add, Button, x50 y30 w300 h30, %mesec%
Return

GuiClose:
ExitApp

Button%mesec%:
MsgBox Ok
Return
Does not seem to work, any suggestions?

Re: Help about buttons  Topic is solved

Posted: 26 Oct 2017, 08:24
by Delta Pythagorean
Put a GLabel in the button:

Code: Select all

Gui, Add, Button, x50 y30 w300 h30 gButton, %mesec%
Return

GuiClose:
ExitApp

Button:
MsgBox Ok
Return

Re: Help about buttons

Posted: 26 Oct 2017, 08:28
by HIAC
Thank you very much, solved.