Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- Opt("GUIOnEventMode", 1)
- $Form1 = GUICreate("Form1", 623, 449, 192, 114)
- GUISetOnEvent(-3,"_Exit")
- $btn = GUICtrlCreateButton("Test",0,0,50,50)
- GUICtrlSetOnEvent(-1,"_Btn")
- GUISetState(@SW_SHOW)
- While Sleep(100)
- WEnd
- Func _Exit()
- Exit
- EndFunc ;==>_Exit
- Func _Btn()
- if @GUI_CtrlId = $btn Then MsgBox(0,"","")
- EndFunc ;==>_Btn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement