Code: Select all
;- Example GUI > MSGBOX
;pr1=%a_programfiles%\AUTOHOTKEY\AutoHotkey.chm
text=Want you start CALCULATOR ?
;msgbox,%text%
pr1:="calc.exe"
Gui,1:default
Gui,1:Font, CDefault, FixedSys
Gui,1:Color,Black
Gui,1:add,button ,x10 y10 h25 w130 ga1,Calculator
Gui,1:show,x10 y10 w160 h90,Msgbox_Test
return
Guiclose:
exitapp
a1:
Gui,2:default
;GUI,2:+AlwaysOnTop -caption -border
GUI,2:+AlwaysOnTop
;Gui,2: Font,s12 ,Lucida Console
Gui,2: Font,cDefault,Fixedsys
Gui,2: Color, D4D0C8
Gui,2:add,Text,x0 y10 w400 center ,%text%
Gui,2:add,Button, x20 y40 h25 w60 gYes1 ,YES
Gui,2:add,Button, x100 y40 h25 w60 gNo1 ,NO
Gui,2:add,Button, x180 y40 h25 w80 gMb1 ,Maybe
Gui,2:add,Button, x280 y40 h25 w100 gYes1 ,Na klar
Gui,2:show,x100 y200 w400 h70 ,Msgbox
return
Yes1:
run,%pr1%
Gui,2:destroy
return
mb1:
T:= !T
if t
{
run,%pr1%
Gui,2:destroy
}
Gui,2:destroy
return
No1:
Gui,2:destroy
return
;=================================================================