Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ButtonConstants.au3>
- #include <EditConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- #Region ### START Koda GUI section ### Form=
- $Form1 = GUICreate("Tinh Toan", 615, 438, 192, 124)
- $Label1 = GUICtrlCreateLabel("7 x 1 = ", 16, 24, 39, 17)
- $Label2 = GUICtrlCreateLabel("7 x 2 = ", 16, 64, 39, 17)
- $kq1 = GUICtrlCreateInput("", 64, 24, 121, 21)
- $kq2 = GUICtrlCreateInput("", 64, 64, 121, 21)
- $kiemtra1 = GUICtrlCreateButton("Kiem Tra", 216, 24, 75, 25)
- $kiemtra2 = GUICtrlCreateButton("Kiem Tra", 216, 64, 75, 25)
- GUISetState(@SW_SHOW)
- #EndRegion ### END Koda GUI section ###
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Exit
- Case $kiemtra1
- If GUICtrlRead($kq1) = 7 Then
- MsgBox(0 , "Thông Báo" , "Chuẩn cmnr" , 2)
- EndIf
- Case $kiemtra2
- If GUICtrlRead($kq2) = 14 Then
- MsgBox(0 , "Thông Báo" , "Chuẩn cmnr" , 2)
- EndIf
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment