TAILIEUCHUNG - GIỚI THIỆU VỀ AUTOIT-Lập Trình Trên AutoIT part 32

Tham khảo tài liệu 'giới thiệu về autoit-lập trình trên autoit part 32', 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ả | i 0 run 0 nDelay 50 ------------------------------------------------------------------------- gui GUICreate A Text Typer 700 500 eMainText GUICtrlCreateEdit 5 5 690 420 ES_AUTOVSCROLL WS_VSCROLL ES_READONLY GUICtrlSetFont -1 10 400 default Tahoma text_ShowSource GUICtrlCreateLabel Source default text 8 435 690 20 text_delay GUICtrlCreateLabel Delay miliSecond 10 470 100 30 eDelay GUICtrlCreateInput nDelay 115 467 40 20 ES_NUMBER btnPlayPause GUICtrlCreateButton Start 170 462 80 30 btnStop GUICtrlCreateButton Stop 250 462 80 30 btnOpenText GUICtrlCreateButton Open text 350 462 80 30 btnLoadDefault GUICtrlCreateButton Load default text 430 462 110 30 text_status GUICtrlCreateLabel Status Stoped. 580 470 150 30 GUISetState ------------------------------------------------------------------------- while 1 msg GUIGetMsg Switch msg case GUI_EVENT_CLOSE ExitLoop Case btnPlayPause If run 0 Or run 2 Then if state is stoped or paused then run 1 set state to start update_status 1 set new text for buttons and status nDelay Abs Int GUICtrlRead eDelay read delay value for speed type timer2type _Timer_SetTimer gui nDelay TypeText create a new timer note this will use current valure of i and run GUICtrlSetState eDelay GUI_DISABLE disable input of delay ElseIf run 1 Then if state is typing then run 2 change state to stoped update_status 2 set new texts for buttons GUICtrlSetState eDelay GUI_ENABLE enable delay s input _Timer_KillTimer gui timer2type kill timer to stop typing text note current value will be used on next time when i create new timer EndIf Case SbtnStop _Timer_KillTimer gui timer2type run 0 i 0 update_status 0 GUICtrlSetState eDelay GUI_ENABLE Case btnOpenText _Timer_KillTimer gui timer2type kill timer to stop typing text If BrowseText Then i 0 check if a new file is opened successfully if yes then reset position which is reading in text nDelay Abs Int GUICtrlRead eDelay update delay value timer2type _Timer_SetTimer gui nDelay TypeText create a new timer for typing .

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.