Code: Select all
#SingleInstance Force
Gui Add, Button, x10 y5 w60 h20 vTest, Press Me
Gui Add, Button, x+0 yP w60 h20 vNice, Press Me
Gui Add, Button, x+0 yP w60 h20 vNope, Press Me
Gui,show,, % A_ScriptName
return
F1::
WinGet, idWindow, ID, A
WinGet, arrControls, ControlList, ahk_id %idWindow%
MsgBox % arrControls
return
Button1, Button2 and Button3. On the other hand I named my Buttons Test,Nice, Nope in my example above.
What is the code, so I know that vTest corresponds to Button1 from the Controllist?
( and vNice corresponds to Button2 from Controllist, vNope corresponds to Button3)
Thanks!