Giới thiệu
AutoIt là một ngôn ngữ lập trình kịch bản miễn phí, có cú pháp giống BASIC, được thiết kế để tự động hóa giao diện người dùng Windows và các tác vụ scripting chung. Phần mềm sử dụng các thao tác mô phỏng phím, di chuyển chuột và điều khiển cửa sổ để thực hiện các công việc tự động mà các ngôn ngữ khác như VBScript không thể làm hoặc không ổn định.
AutoIt có kích thước nhỏ gọn, hoạt động độc lập trên mọi phiên bản Windows mà không cần cài đặt thêm runtime. Ngoài ra, nó còn hỗ trợ biên dịch script thành file thực thi độc lập, giúp dễ dàng phân phối và sử dụng.
Tính năng chính
- Cú pháp dễ học, giống ngôn ngữ BASIC.
- Mô phỏng các thao tác bàn phím và chuột để tự động hóa.
- Điều khiển cửa sổ và tiến trình trên Windows.
- Hỗ trợ tương tác với tất cả các điều khiển chuẩn của Windows.
- Biên dịch script thành file thực thi độc lập.
- Tạo giao diện người dùng đồ họa (GUI) cho script.
- Hỗ trợ gọi trực tiếp DLL và API của Windows, cùng với COM và biểu thức chính quy.
Ai nên dùng
AutoIt phù hợp với người dùng muốn tự động hóa các tác vụ trên Windows mà không cần phần mềm phức tạp, bao gồm quản trị viên hệ thống, kỹ thuật viên IT, cũng như những người lập trình muốn tạo macro hoặc công cụ tự động hóa riêng.
Cài đặt
- Bấm nút Tải về trên trang này để tải bộ cài gốc.
- File tải về có định dạng zip, bạn giải nén rồi chạy trực tiếp các file bên trong mà không cần cài đặt.
- Sử dụng trình soạn thảo script đi kèm để viết và biên dịch các kịch bản tự động.
Lưu ý
AutoIt là phần mềm miễn phí (Freeware) và hoạt động độc lập không cần cài thêm thành phần bên ngoài. Để sử dụng lâu dài và đầy đủ tính năng, bạn nên tải bản chính thức từ trang chủ hoặc các nguồn uy tín như trang này.
Có gì mới trong 3.3.18.0
AutoIt:
- Changed: Windows 7/Server 2008 is now the minimum OS version required due to dev environment changes.
- Added #3891: DllCall() performance optimisation.
- Added: Standard Windows Fonts List for Win10/Win11.
- Added #3906: GUICtrlCreateXXX creation in example assign to $idXXX to reflect Ctrl type.
- Added: FileGetAttrib() retrieve Join folder (J) as created by FileCreateNTFSLink().
- Added: Split WindowsConstants.u3 in WindowsNotifsConstants.au3, WindowsStylesConstants.au3 and WindowsSysColor.au3.
- Added: #3984: GUICtrlSetGraphic() doc precision.
- Added: operator precedence doc precision.
- Fixed: Doc Chr(0) handling inside functions.
- Fixed #3923: Doc typo in "Send Key List".
- Fixed: Regression #3135 handle leak (Thanks Nano, Rudi, Nine).
- Fixed #3925: Doc With ... EndWith using DllStruct Type.
- Fixed: Links in Tutorials example code (thanks argumentum).
Au3info:
- Added: Display mouse coordinate mode.
- Fixed #3917: Crash under Win7.
SciTE-lite:
- Fixed: Folding Fix for #Preprocessor foldblock when followed by a CommentBlock.
UDFs:
- Added: script examples when running under Win11 with new notepad.exe.
- Added: _GUICtrlTreeView_GetItemByIndex() can retrieve handle of the list of main item ($hItem= -1).
- Added: _IsPressed() can be called with numeric value as in "WinAPIsvkeysConstants.au3".
- Added #3909: _DebugReportData() to report Array column formatted.
- Added: libExamples referring MemoWrite() now refer to _MemoWrite() defined in Extras\HelpFileInternals.au3.
- Added: _WinAPI_WaitSystemIdle(), _WinAPI_QueryDiskUsage(), _WinAPI_QueryProcessorUsage(), _WinAPI_QueryProcessCycleTime()
- Added: Doc _WinAPI_GetWindowSubclass() example (Thanks pixelSearch).
- Added: _WinAPI_GetKeyboardLayout() default value for the running thread.
- Added: _WinAPI_GetUserDefaultLCID() example.
- Added: _WinAPI_GetKeyboardLayoutLocale().
- Added: _WinAPI_GetKeyboardState() example (Thanks AutoXenon).
- Added #3932: Try to use file in HelpFile\Extras instead of @ScriptDir.
- Added #3934: _WinAPI_SetTimer() example.
- Added: _IsPressed() can wait on one of several keys.
- Added: _WinAPI_SendInput().
- Added #3960: _Div() integer division.
- Added #3963: _WinAPI_OpenEvent().
- Added: _GDIPlus_ImageSaveToFile() doc precision for compression level.
- Added: _WinAPI_GetCursorSize() and _WinAPI_SetCursorSize().
- Added: $FOLDERID_Documents Constants in APIShellExConstants.au3.
- Added: Support _GUIToolTip*() to be used to external process.
- Added: Support _GUICtrlHeader*() to be used to external process.
- Added: Support _GUICtrlStatusBar*() to be used to external process.
- Added #3988: _WinAPI_GetSystemPowerStatus() return Battery status saver.
- Added #3985: _ArrayDisplay() + $WS_EX_TOPMOST.
- Added #3991: _SQLite_ForeignKeys() and Add a parameter in _SQLite_Open() to set it also.
- Added #3990: _IsPressed() return in @extended if the key is still pressed.
- Added: _DebugSetup(..., 1) does not interact with script being debug, Report infos copied to clipboard
- Added: _WinAPI_SetWindowTheme() example to demonstrate Checkbox or Radio controls coloring.
- Added #3997: _WinAPI_RegisterShellHookWindow() example improvement.
- Added #3999: _WinAPI_OemToChar() performance improvement.
- Added #3946: _ChooseFont() updated defaults (thanks argumentum).
- Added: _DateDiff(), _DateAdd() using array for [days, hours, minutes, seconds].
- Added: _DebugSetup() Type 6, same as 1 but a timeout to close the report log windows.
- Added: _WinAPI_MultiByteToWideChar() using DllStructSize.
- Added: $MB_ERR_INVALID_CHARS for _WinAPI_MultiByteToWideChar().
- Fixed #3894: _WinAPI_GetProcessName() returns incorrect result when process ID is invalid.
- Fixed: "Then SetError()" in several standard UDF.
- Fixed #3921: Missing _GUICtrlStatusBar_SetParts() examples.
- Fixed: Doc typo $GPIP_ERR* >> $GDIP_ERR*.
- Fixed #3926: _GUICtrlTreeView_SetChildren() not set/reset chidren flag.
- Fixed: _WinAPI_DisplayStruct() elements containing chr(124).
- Fixed #3945: StringRegExp() /s include VT.
- Fixed #3949: _ArrayDisplay() does show multiple subscript of an array.
- Fixed #3954: links in libfunction constants.
- Fixed: missing doc description $iSubItem = - 1 in _GUICtrlListView_SetItemText().
- Fixed #3959: _WinAPI_ShellUserAuthenticationDlg() example.
- Fixed #3975: unrelated link in Pcre doc.
- Fixed #3903: _GuiCtrlTab_GetItem() does work on external process.
- Fixed #3940: _GuiCtrlTab_GetItemText() does work on external process.
- Fixed #3992: _WinAPI_DwmSetWindowAttribute() does not support all MSDN attributes.
- Fixed #4001: _GUICtrlListView_*() example ($tagNMITEMACTIVATE).
- Fixed #4003: _ArrayPush() doc precision.
- Fixed: _GUICtrlButton_SetSplitInfo() example crash.
- Fixed: Support of Notepad under Win11 for _DebugSetup().
- Fixed #4022: Various doc duplicated words.
- Fixed #4031: _DebugArrayDisplay() buttons display.
- Fixed: _DebugArrayDisplay() not executed if @error on entering ($ARRAYDISPLAY_CHECKERROR if no display wanted on @error).
- Fixed #4033: _DateTimeSplit() setting $aTimePart[0] whem no time defined.
- Fixed #4024: _DebugSetup(,, 5) (notepad window) not working under Windows 11.
- Fixed: _WinAPI_IsElevated() @extended return value (Thanks Argumentum).
- Fixed #4039: _GUICtrlTreeView_Delete() with $hWnd.
- Fixed #4038: _GUICtrlRichEdit_StreamToFile() extra new paragraph.
- Fixed #4029: _Date_Time_SystemTimeToDateTimeStr() Wrong output.
- Fixed #4040: _GUICtrlRichEdit_SetZoom() parameter limitation bug.
- Fixed #4041: _GUICtrlStatusBar_SetIcon() not shown.