Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GuiConstants.au3>
- $hGui = GUICreate("GUI di prova")
- $Pulsante1 = GUICtrlCreateButton("Pulsante 1", 100, 100)
- $Pulsante2 = GUICtrlCreateButton("Pulsante 1", 100, 150)
- GUISetState(@SW_SHOW)
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Exit
- Case $Pulsante1
- FunzioneUno()
- Case $Pulsante2
- FunzioneDue()
- EndSwitch
- WEnd
- Func FunzioneUno()
- MsgBox(64,"", "Hai premuto il primo pulsante!")
- EndFunc
- Func FunzioneDue()
- MsgBox(64,"", "Hai premuto il secondo pulsante!")
- EndFunc
Add Comment
Please, Sign In to add comment