Help about buttons Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
HIAC
Posts: 111
Joined: 11 Oct 2017, 17:59
Location: Republic of Serbia

Help about buttons

26 Oct 2017, 08:19

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?
User avatar
Delta Pythagorean
Posts: 567
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: Help about buttons  Topic is solved

26 Oct 2017, 08:24

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

- [AHK].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.18362
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Delta#3324

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
HIAC
Posts: 111
Joined: 11 Oct 2017, 17:59
Location: Republic of Serbia

Re: Help about buttons

26 Oct 2017, 08:28

Thank you very much, solved.

Return to “Ask For Help”

Who is online

Users browsing this forum: conracer, Iamsoconused, mikeyww, TAC109 and 36 guests