« Home « Chủ đề autoit

Chủ đề : autoit


Có 160+ tài liệu thuộc chủ đề "autoit"

AutoIT Help part 30

tailieu.vn

trả lại dung lượng của file (tính = byte) FileGetSize ( "filename". Failure: trả lại 0 và set @error = 1. trả lại thông tin về thời gian của file. xác định kiểu của giá trị trả lại 0 = trả lại một mảng (mặc định). 1 = trả lại một xâu kí tự YYYYMMDDHHMMSS. Success: trả lại thông tin...

AutoIT Help part 31

tailieu.vn

sử dụng filemove thay cho filerename flag 9 = flag 8 + flag 1. một số thuwocj tính của file có thể làm hàm bị lỗi Related. "\*.txt", @TempDir &. mở một file để sẵn sàng đọc hoặc ghi dl FileOpen ( "filename", mode. filename đường dẫn tới file cần mở mode xác định mục đích mở file. 1 =...

AutoIT Help part 32

tailieu.vn

Return Value. Success: trả lại chuỗi kí tự, hay chuỗi nhị phân đọc đc đặc biệt: Sets @error to -1 nếu đọc hết file.. Failure: Sets @error to 1 nếu file đc mở ko để đọc hoặc lỗi khác.. Sets @error to 2 nếu count không phải được định nghĩa cho file đc mở kiểu đọc "tươi".. nếu sử dụng...

AutoIT Help part 33

tailieu.vn

init dir thư mục chủ để lưu file vào trong đó. filter định dạng kiểu file nào đc phép chọn vd "All (*.*)". Success: trả lại đường dẫn đầy dủ của file đc chọn, ở flag=4 thì trả lại "đường dẫn tới thư mục|file1|file2|...". $var = FileSaveDialog( "Choose a name.", $MyDocsFolder, "Scripts (*.aut;*.au3)", 2). MsgBox Save cancelled.") Else. $var =...

AutoIT Help part 34

tailieu.vn

;change file.au3's "modified". $var = FileSetTime("file.au . MsgBox(0, "Error Unable to open file.") Exit. xóa giá trị trong file .ini đc định dạng theo kiểu chuẩn. section tên vùng trong file .ini. định dạng chuẩn của file .ini như sau:. đọc giá trị trong file .ini đc định dạng theo kiểu chuẩn

AutoIT Help part 35

tailieu.vn

IniDelete, IniWrite, FileReadLine, IniRead, IniReadSectionNames, IniRenameSection, IniWriteSection. $var = IniReadSection("C:\Temp\myfile.ini section2") If @error Then. MsgBox Error occurred, probably no INI file.") Else. For $i = 1 To $var[0][0]. "Value: ". $var[$i][1]) Next EndIf. Function Reference IniReadSectionNames. trả lại tất cả tên vùng (section) trong file chuẩn ini.. IniReadSectionNames ( "filename". filename đường dẫn. Return Value. Success: trả lại mảng. định...

AutoIT Help part 36

tailieu.vn

[optional] The value to assign to the option. If the param is not provided, then the function just returns the value already assigned to the option. Returns the value of the previous setting for the option.. Sets the way coords are used in the caret functions, either absolute coords or coords relative to the current active window:. 0 = relative...

AutoIT Help part 37

tailieu.vn

copy any you want to change ;default value is listed first Opt("CaretCoordMode absolute, 0=relative, 2=client Opt("ExpandEnvStrings don't expand, 1=do expand Opt("ExpandVarStrings don't expand, 1=do expand Opt("FtpBinaryMode binary, 0=ASCII. Opt("GUICloseOnESC ESC closes, 0=ESC won't close Opt("GUICoordMode absolute, 0=relative, 2=cell. Opt("GUIDataSeparatorChar . Opt("GUIOnEventMode disabled, 1=OnEvent mode enabled Opt("GUIResizeMode no resizing, <1024 special resizing. Opt("GUIEventOptions default, 1=just notification, 2=GuiCtrlRead tab index. Opt("MouseClickDelay milliseconds...

AutoIT Help part 38

tailieu.vn

Alters the position of a control defined by GUICtrlSetPos.. 1 = absolute coordinates (default) still relative to the dialog box.. 0 = relative position to the start of the last control (upper left corner).. But if you can use a multiple of the width you choose to skip or go back.. Alters the length of the brief pause in between...

AutoIT Help part 39

tailieu.vn

Opt("TrayMenuMode append, 1=no default menu, 2=no automatic check, 4=menuitemID not return. Opt("TrayOnEventMode disable, 1=enable. Opt("WinDetectHiddenText don't detect, 1=do detect Opt("WinSearchChildren no, 1=search children also Opt("WinTextMatchMode complete, 2=quick. Opt("WinTitleMatchMode start, 2=subStr, 3=exact, 4=advanced, -1 to - 4=Nocase. Opt("WinWaitDelay milliseconds. Function Reference PixelGetColor. trả lại giá trị màu tại điểm ảnh.. y tọa độ Y. hwnd handle tới GUI muốn kiểm tra,...

AutoIT Help part 40

tailieu.vn

$WS_EX_ACCEPTFILES. $WS_EX_APPWINDOW Forces a top-level window onto the taskbar when the window is visible.. $WS_EX_CLIENTEDGE Specifies that a window has a border with a sunken edge.. $WS_EX_CONTEXTHELP. $WS_EX_DLGMODALFRAME Creates a window that has a double border;. $WS_EX_MDICHILD Create a child window included in its parent window (simulation not real MDI).. $WS_EX_OVERLAPPEDWINDOW Combines the WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE styles.. $WS_EX_STATICEDGE. $WS_EX_TOPMOST. $WS_EX_TRANSPARENT....

AutoIT Help part 41

tailieu.vn

Success: trả lại controlID Failure: Returns 0.. để lấy giá trị của control ta dùng GUICtrlRead.. để đặt các thuộc tính cho control ta dùng GUICtrlSet..... Để đoạn video đc chạy luôn ngay sau khi control được tạo ra sử dụng kiểu. bạn có thể bắt đầu chạy hay dùng đoạn video bằng hàm GUICtrlSetState với state. để sử dụng...

AutoIT Help part 42

tailieu.vn

để lấy giá trị của control ta dùng GUICtrlRead.. để đặt các thuộc tính cho control ta dùng GUICtrlSet..... để có thể dùng đc các biến trên ta cầnphair khai báo thư viện #include. <ButtonConstants.au3>. #include <GUIConstantsEx.au3>. Func Example(). GUICreate("My GUI Checkbox". will create a dialog box that when displayed is centered. will display an dialog box with 1 checkbox....

AutoIT Help part 43

tailieu.vn

Run the GUI until the dialog is closed While 1. If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd. EndFunc ;==>Example1. Func Example2(). $hGui = GUICreate("My GUI . $OptionsBtn = GUICtrlCreateButton("&Options BS_FLAT. At first create a dummy control for the options and a contextmenu for it $OptionsDummy = GUICtrlCreateDummy(). $HelpBtn = GUICtrlCreateButton("&Help BS_FLAT. Create a dummy control and a contextmenu for the...

AutoIT Help part 44

tailieu.vn

EndFunc ;==>Example2. Local $date, $DTM_SETFORMAT_, $style. GUICreate("My GUI get date . $DTM_SETFORMAT. $GUI_EVENT_CLOSE WEnd. MsgBox(0, "Time", GUICtrlRead($date)) EndFunc ;==>Example3. tạo một Dummy control cho GUI.. #include <GUIConstantsEx.au3>. GUICreate("GUICtrlCreateDummy GUISetBkColor(0x00E0FFFF. Case $msg = $button. GUICtrlSendToDummy($user) Case $msg = $cancel. GUICtrlSendToDummy($user) Case $msg = $user. Until $msg = $GUI_EVENT_CLOSE EndFunc ;==>Example. tạo Edit control cho GUI để nhập xuất văn bản.. GUICtrlCreateEdit...

AutoIT Help part 45

tailieu.vn

$oMyError = ObjEvent("AutoIt.Error MyErrFunc") $oRP = ObjCreate("RICHTEXT.RichtextCtrl.1"). $oRP.SaveFile(@ScriptDir &. "err.description is: ". $oMyError.description &. "err.windescription:". $oMyError.windescription &. "err.number is: ". Hex($oMyError.number, 8) &. "err.lastdllerror is: ". $oMyError.lastdllerror &. "err.scriptline is: ". $oMyError.scriptline &. "err.source is: ". $oMyError.source &. "err.helpfile is: ". $oMyError.helpfile &. "err.helpcontext is: ". $oMyError.helpcontext. Local $err = $oMyError.number If $err = 0 Then $err = -1

AutoIT Help part 46

tailieu.vn

EndFunc ;==>CreateChild. tạo một Group control cho GUI để nhóm các control lại.. GUICtrlCreateGroup ( "text", left, top. text text hiện trị sẵn trên control left tọa độ X. top tọa độ Y width chiều rộng height chiều cao. forced styles : $WS_GROUP, $BS_GROUPBOX.. exStyle kiểu mở rộng. trong cùng một nhóm các radio ko thể cùng check đc. <ButtonConstants.au3>....

AutoIT Help part 47

tailieu.vn

Opt("GUICoordMode", $iOldOpt) EndFunc ;==>Example2. tạo ra Input control cho GUI để nhập hiện chuỗi kí tự.. GUICtrlCreateInput ( "text", left, top. text text hiện trị sẵn trên control left tọa độ X. top tọa độ Y. forced styles : $WS_TABSTOP only if no $ES_READONLY.. exStyle kiểu mở rộng. xem Extended Style Table.. để lấy giá trị của control ta dùng...

AutoIT Help part 48

tailieu.vn

GUICtrlCreateList ( "text", left, top. text text hiện trị sẵn trên control left tọa độ X. top tọa độ Y. xem Extended Style Table.. để lấy giá trị ddang đc chọn của control ta dùng GUICtrlRead.. để đặt các thuộc tính cho control ta dùng GUICtrlSet..... The different list entries that can be selected can be set with GUICtrlSetData. có...

AutoIT Help part 49

tailieu.vn

Case $msg = $button. MsgBox(0, "listview item", GUICtrlRead(GUICtrlRead($listview. 2) Case $msg = $listview. MsgBox(0, "listview clicked=". Until $msg = $GUI_EVENT_CLOSE EndFunc ;==>Example. GUICtrlCreateListViewItem tạo một ListView item.. This function creates the individual ListView items that can be selected. The items function as normal controls and can be set with GUICtrlSetData.. Items can be deleted as with any other control by...