TAILIEUCHUNG - AutoIT Help part 63

Tham khảo tài liệu 'autoit help part 63', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Run the GUI until the dialog is closed While 1 msg GUIGetMsg If msg GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc Example Function Reference GUICtrlSetOnEvent dinh nghia 1 hàm se de goi toi khi su kiên sày ra trên control. GUICtrlSetOnEvent controlID function Parameters controlID control id function ten ham Return Value Success Returns 1. Failure Returns 0 Remarks chê dô onevent ehi eo hieu lue khi ta chuyên sang no eaeh opt GUIOnEventMode 1 khi do ehê dô mae dinh GUIGetMsg se ko dùng de nùa cac macro dac biet @GUI_CTRLID controlID đã sảy ra sự kiện @GUI_WINHANDLE và @GUI_CTRLhAnDLE GUI handle control handle sảy ra sự kiện nếu tên hàm function thì có nghĩa là bỏ hàm khi sự kiện sảy ra trên control đó thì chẳng làm gì cả Related GUICreate GUICtrlCreate. GUIGetMsg GUIOnEventMode Option GUISetOnEvent Example include Opt MustDeclareVars 1 Example Func Example Local parent1 ok1 cancel1 Opt GUICoordMode 2 Opt GUIResizeMode 1 Opt GUIOnEventMode 1 parent1 GUICreate Parent1 GUISetOnEvent GUI_EVENT_CLOSE SpecialEvents GUISetOnEvent GUI_EVENT_MINIMIZE SpecialEvents GUISetOnEvent GUI_EVENT_RESTORE SpecialEvents ok1 GUICtrlCreateButton OK 10 30 50 GUICtrlSetOnEvent -1 OKPressed cancel1 GUICtrlCreateButton Cancel 0 -1 GUICtrlSetOnEvent -1 CancelPressed GUISetState @SW_SHOW Just idle around While 1 Sleep 10 WEnd EndFunc Example Func OKPressed MsgBox 0 OK Pressed ID @GUI_CtrlId WinHandle @GUI_WinHandle CtrlHandle @GUI_CtrlHandle EndFunc OKPressed Func CancelPressed MsgBox 0 Cancel Pressed ID @GUI_CtrlId WinHandle @GUI_WinHandle CtrlHandle @GUI_CtrlHandle EndFunc CancelPressed Func SpecialEvents Select Case @GUI_CtrlId GUI_EVENT_CLOSE MsgBox 0 Close Pressed ID @GUI_CtrlId WinHandle @GUI_WinHandle Exit Case @GUI_CtrlId GUI_EVENT_MINIMIZE MsgBox 0 Window Minimized ID @GUI_CtrlId WinHandle @GUI_WinHandle Case @GUI_CtrlId GUI_EVENT_RESTORE MsgBox 0 Window Restored ID @GUI_CtrlId WinHandle @GUI_WinHandle EndSelect EndFunc .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.