Help about buttons Topic is solved

Get help with using AutoHotkey (v1.1 and older) 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: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

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]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

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 (v1)”

Who is online

Users browsing this forum: aitaixy, Google [Bot], Nerafius, RandomBoy and 196 guests