| AutoIt3 | Python |
| ; коммент. | # коммент. |
| #cs...#ce | '''...''' |
| Операторы |
| Not | not |
| And | and |
| Or | or |
| <> | != или <> |
| 'str' & 'str' | 'str' + 'str' |
| Ключевые слова |
| #include | import |
| ContinueLoop | continue |
| ExitLoop | break |
| Exit | exit или sys.exit(5) |
| Func | def |
| Return | return |
| Файловые операции |
| FileOpen | open |
| FileClose | f.close |
| FileFlush | f.flush |
| FileSetPos | f.seek |
| FileGetPos | f.tell |
| FileWrite | f.write |
| FileRead | f.read |
| FileReadLine | f.readline |
| _FileReadToArray | f.readlines |
| FileExists | os.path.exists |
| FileDelete | os.remove |
| DirCreate | os.mkdir |
| DirMove | shutil.move |
| FileCopy | shutil.copyfile |
| DirRemove | shutil.rmtree |
| _TempFile | tempfile.TemporaryFile |
| _PathSplit | os.path.split или os.path.splitext |
| _PathMake | os.path.join |
| _PathFull | os.path.abspath |
| Строки |
| StringCompare | cmp |
| StringLen | len |
| StringInStr | string.find или .rfind |
| StringSplit | string.split |
| StringUpper | string.upper |
| StringLower | string.lower |
| StringRegExp | re.findall |
| StringRegExpReplace | re.subn |
| StringReplace | str.replace |
| StringFormat | .format или % |
| StringLeft | s[:3] |
| StringRight | s[-3:] |
| StringTrimLeft | s[3:] |
| StringTrimRight | s[:-3] |
| StringMid | s[2:5] |
| Проверка строки |
| StringIsAlNum | string.isalnum |
| StringIsAlpha | string.isalpha |
| StringIsDigit | string.isdigit |
| StringIsLower | string.islower |
| StringIsSpace | string.isspace |
| StringIsUpper | string.isupper |
| Преобразование |
| Asc | ord |
| Chr | chr |
| Number | --- |
| Int | int |
| String | str |
| VarGetType | type |
| Математика |
| ^ (степень) | ** |
| Abs | abs |
| Cos | math.cos |
| Ceiling | math.ceil |
| Floor | math.floor |
| Mod | math.fmod или % |
| Round | round |
| Битовые операции |
| BitAND | & |
| BitShift | << или >> |
| BitOR | | |
| BitXOR | ^ |
| BitNOT | ~ |
| Дата и время |
| Sleep | time.sleep |
| TimerInit | time.time |
| _Now | datetime.now |
| _DateToDayOfWeek | d.weekday |
| _DateAdd | datetime.timedelta |
| _WeekNumberISO | d.isocalendar или d.strftime("%W") |
| @YEAR | now.year |
| @MON | now.month |
| @MDAY | now.day |
| @WDAY | now.weekday |
| @YDAY | now.strftime("%j")y |
| @HOUR | now.hour |
| @MIN | now.minute |
| @SEC | now.second |
| @MSEC | now.microsecond |
| Прочее |
| @error | try:...except: |
| @ScriptDir | os.getcwd |
| @OSVersion | sys.platform |
| @DesktopWidth | root.winfo_screenwidth |
| @DesktopHeight | root.winfo_screenheight |
| OnAutoItExitRegister | atexit.register |
| /AutoIt3ExecuteScript | execfile |
| Random | random.random |
| ClipGet | Tkinter -> root.clipboard_get |
| ClipPut | Tkinter -> root.clipboard_append |
| ShellExecute | os.startfile |
| Run | os.system |
| $CmdLine | sys.argv |
| ini - функции | ConfigParser |
| 111 | 222 |