⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autoit3.def

📁 是一个很好的编辑器
💻 DEF
📖 第 1 页 / 共 2 页
字号:
[Do | Do...Until]
Do
    statements
    ...
Until |<expression>
[For | For...Next] 
For <variable> = <start> To <stop> [Step <stepval>]
    statements
    ...
[Func | Func...EndFunc]
Func functioname ( [ByRef] $param1, ..., [ByRef] $paramN)
    ...
    [Return [value]]
EndFunc
[If...Then | If...Then]
If <expression> Then statement
[If...ElseIf...Else...EndIf | If...ElseIf...Else...EndIf ]
If <expression> Then
    statements
    ...
ElseIf expression-n Then
    ElseIf statements ... 
    ...
Else
    Else statements
    ...
EndIf
[Select...Case...EndSelect | Select...Case...EndSelect]
Select
    Case <expression>
        statement1
        ...
    [Case 
        statement2
        ...]
    [Case Else
        statementN
        ...]
EndSelect

[IF | .]
IF
;
[Then | .]
Then
;
[Else | .]
Else
;
[ElseIF | .]
ElseIF
;
[EndIF | .]
EndIF
;
[Do | .]
Do
;
[Untill | .]
Untill
;
[Exit | Exit Program]
Exit [( returncode)]
;
[ExitLoop | Leave the Do/While/For loop.]
ExitLoop
;
[For | .]
For
;
[Next | .]
Next
;
[Local | Local Variable Definition]
Local
;
[Global | Global Variable Definition]
Global
;
[While | .]
While
;
[Wend | .]
Wend
;
[Select | .]
Select
;
[Case | .]
Case
;
[CaseElse | .]
CaseElse
;
[EndSelect | .]
EndSelect
;


[Abs | Calculates the absolute value of a number.]
Abs ( |expression )
;
[ACos | Calculates the arcCosine of a number.]
ACos ( |expression )
;
[AdlibDisable | Disables the adlib functionality.]
AdlibDisable ( |)
;
[AdlibEnable | Enables Adlib functionality.]
AdlibEnable ( |"function" [,time] )
;
[Asc | Returns the ASCII code of a character.]
Asc ( |"char" )
;
[ASin | Calculates the arcsine of a number.]
ASin ( |expression )
;
[ATan | Calculates the arctangent of a number.]
ATan ( |expression )
;
[AutoItSetOption | Changes the operation of various AutoIt functions/parameters.]
AutoItSetOption ( |"option", param )
;
[AutoItWinGetTitle | Retrieves the title of the AutoIt window.]
AutoItWinGetTitle ( |)
;
[AutoItWinSetTitle | Changes the title of the AutoIt window.]
AutoItWinSetTitle ( |"newtitle" )
;
[BitAND | Performs a bitwise AND operation.]
BitAND ( |value1, value2 )
;
[BitNOT | Performs a bitwise NOT operation.]
BitNOT ( |value )
;
[BitOR | Performs a bitwise OR operation.]
BitOR ( |value1, value2 )
;
[BitShift | Performs a bit shifting operation.]
BitShift ( |value, shift )
;
[BitXOR | Performs a bitwise exclusive OR (XOR) operation.]
BitXOR ( |value1, value2 )
;
[BlockInput | Disable/enable the mouse and keyboard.]
BlockInput ( |flag )
;
[Break | Enables or disables the users' ability to exit a script from the tray icon menu.]
Break ( |mode )
;
[Call | Calls a user-defined function contained in a string parameter.]
Call ( |"function" )
;
[CDTray | Opens or closes the CD tray.]
CDTray ( |"drive", "status" )
;
[Chr | Returns a character corresponding to an ASCII code.]
Chr ( |ASCIIcode )
;
[ClipGet | Retrieves text from the clipboard.]
ClipGet ( |)
;
[ClipPut | Writes text to the clipboard.]
ClipPut ( |"value" )
;
[ControlClick | Sends a mouse click command to a given control.]
ControlClick ( |"title", "text", "classnameNN" [, button] [, clicks]] )
;
[ControlCommand | Sends a command to a control.]
ControlCommand ( |"title", "text", "classnameNN", "command", "option" )
;
[ControlDisable | Disables or "grays-out" a control.]
ControlDisable ( |"title", "text", "classnameNN")
;
[ControlEnable | Enables a "grayed-out" control.]
ControlEnable ( |"title", "text", "classnameNN" )
;
[ControlFocus | Sets input focus to a given control on a window.]
ControlFocus ( |"title", "text", "classnameNN" )
;
[ControlGetFocus | Returns the ControlRef# of the control that has keyboard focus within a specified window.]
ControlGetFocus ( |"title" [, "text"] )
;
[ControlGetPos | Retrieves the position and size of a control relative to it's window.]
ControlGetPos ( |"title", "text", "classnameNN" )
;
[ControlGetText | Retrieves text from a control.]
ControlGetText ( |"title", "text", "classnameNN" )
;
[ControlHide | Hides a control.]
ControlHide ( |"title", "text", "classnameNN" )
;
[ControlMove | Moves a control within a window.]
ControlMove ( |"title", "text", "classnameNN", x, y [, width [, height]] )
;
[ControlSend | Sends a string of characters to a control.]
ControlSend ( |"title", "text", "classnameNN", "string" [, flag] )
;
[ControlSetText | Sets text of a control.]
ControlSetText ( |"title", "text", "classnameNN", "new text" )
;
[ControlShow | Shows a control that was hidden.]
ControlShow ( |"title", "text", "classnameNN" )
;
[Cos | Calculates the cosine of a number.]
Cos ( |expression )
;
[Dec | Returns a numeric representation of a hexidecimal string.]
Dec ( |"hex" )
;
[DirCopy | Copies a directory and all sub-directories and files (Similar to xcopy).]
DirCopy ( |"source dir", "dest dir" [, flag] )
;
[DirCreate | Creates a directory/folder.]
DirCreate ( |"path" )
;
[DirMove | Moves a directory and all sub-directories and files.]
DirMove ( |"source dir", "dest dir" [, flag] )
;
[DirRemove | Deletes a directory/folder.]
DirRemove ( |"path" [,recurse] )
;
[DriveGetDrive | Returns an array containing the enumerated drives.]
DriveGetDrive ( |"type" )
;
[DriveGetFileSystem | Returns File System Type of a drive.]
DriveGetFileSystem ( |"path" )
;
[DriveGetLabel | Returns Volume Label of a drive, if it has one.]
DriveGetLabel ( |"path" )
;
[DriveGetSerial | Returns Serial Number of a drive.]
DriveGetSerial ( |"path" )
;
[DriveGetType | Returns drive type.]
DriveGetType ( |"path" )
;
[DriveSetLabel | Sets the Volume Label of a drive.]
DriveSetLabel ( |"path", "label" )
;
[DriveSpaceFree | Returns the free disk space of a path in Megabytes.]
DriveSpaceFree ( |"path" )
;
[DriveSpaceTotal | Returns the total diskspace of a path in Megabytes.]
DriveSpaceTotal ( |"path" )
;
[DriveStatus | Returns the status of the drive as a string.]
DriveStatus ( |"path" )
;
[EnvGet | Retrieves an environment variable.]
EnvGet ( |"envvariable" )
;
[EnvSet | Writes an environment variable.]
EnvSet ( |"envvariable", "value" )
;
[EnvUpdate | Refreshes the OS environment.]
EnvUpdate ( |)
;
[Exp | Calculates <i><b>e</b></i> to the power of a number.]
Exp ( |expression )
;
[FileChangeDir | Changes the current working directory.]
FileChangeDir ( |"path" )
;
[FileClose | Closes a previously opened text file.]
FileClose ( |filehandle )
;
[FileCopy | Copies one or more files.]
FileCopy ( |"source", "dest" [, flag] )
;
[FileCreateShortcut | Creates a shortcut (.lnk) to a file.]
FileCreateShortcut ( |"file", "lnk" [, "workdir", "args", "desc", "icon", "hotkey"] )
;
[FileDelete | Delete one or more files.]
FileDelete ( |"path" )
;
[FileExists | Checks if a file or directory exists.]
FileExists ( |"path" )
;
[FileFindFirstFile | Returns a filename according to search string.]
FileFindFirstFile ( |"filename" )
;
[FileFindNextFile | Returns a filename according to a previous call to FileFindFirstFile.]
FileFindNextFile ( |$search )
;
[FileGetAttrib | Returns a code string representing a file's attributes.]
FileGetAttrib ( |"filename" )
;
[FileGetLongName | Returns the long path+name of the path+name passed.]
FileGetLongName ( |"file" )
;
[FileGetShortName | Returns the 8.3 short path+name of the path+name passed.]
FileGetShortName ( |"file" )
;
[FileGetSize | Returns the size of a file in bytes.]
FileGetSize ( |"filename" )
;
[FileGetTime | Returns the time and date information for a file.]
FileGetTime ( |"filename" [,option] )
;
[FileGetVersion | Returns the "File" version information.]
FileGetVersion ( |"filename" )
;
[FileInstall | Include and install a file with the compiled script.]
FileInstall ( |"source", "dest" [,flag] )
;
[FileMove | Moves one or more files]
FileMove ( |"source", "dest" [, flag] )
;
[FileOpen | Opens a text file for reading or writing.]
FileOpen ( |"filename", mode )
;
[FileOpenDialog | Initiates a Open File Dialog.]
FileOpenDialog ( |"title", "init dir", "filter" [, options] )
;
[FileReadLine | Read in a line of text from a previously opened text file.]
FileReadLine ( |filehandle or "filename" [, line] )
;
[FileRecycle | Sends a file or directory to the recycle bin, if possible]
FileRecycle ( |"source" )
;
[FileSaveDialog | Initiates a Save File Dialog.]
FileSaveDialog ( |"title", "init dir", "filter" [, options] )
;
[FileSelectFolder | Initiates a Browse For Folder GUI.]
FileSelectFolder ( |"dialog text", "root dir", flag )
;
[FileSetAttrib | Sets the attributes of one or more files.]
FileSetAttrib ( |"file pattern", "+-RASHNOT" [, recurse] )
;
[FileSetTime | Sets the timestamp of one of more files.]
FileSetTime ( |"file pattern", "time", type [, recurse] )
;
[FileWriteLine | Append a line of text to the end of a previously opened text file.]
FileWriteLine ( |filehandle or "filename", "line" )
;
[Hex | Returns a string representation of an integer converted to hexadecimal.]
Hex ( |number, length )
;
[HotKeySet | Sets a hotkey that calls a user function.]
HotKeySet ( |"key" [, "function"] )
;
[IniDelete | Deletes a value from a standard format .ini file.]
IniDelete ( |"filename", "section", "key" )
;
[IniRead | Reads a value from a standard format .ini file.]
IniRead ( |"filename", "section", "key", "default" )
;
[IniWrite | Writes a value to a standard format .ini file.]
IniWrite ( |"filename", "section", "key", "value" )
;
[InputBox | Displays an input box to ask the user to enter a string.]
InputBox ( |"title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut]]]]] )
;
[Int | Returns the integer (whole number) representation of an expression.]
Int ( |expression )
;
[IsAdmin | Checks if the current user has administrator privileges.]
IsAdmin ( |)
;
[IsArray | Checks if a variable is an array type.]
IsArray ( |variable )
;
[IsFloat | Checks if a variable or expression is a float-type.]
IsFloat ( |variable )
;
[IsInt | Checks if a variable or expression is an integer type.]
IsInt ( |variable )
;
[IsNumber | Checks if a variable's base type is numeric.]
IsNumber ( |variable )
;
[IsString | Checks if a variable is a string type.]
IsString ( |variable )
;
[Log | Calculates the natural logarithm of a number.]
Log ( |expression )
;
[Mod | Performs the modulus operation.]
Mod ( |value1, value2 )
;
[MouseClick | Perform a mouse click operation.]
MouseClick ( |"button" [, x, y [, clicks [, speed ]]] )
;
[MouseClickDrag | Perform a mouse click and drag operation.]
MouseClickDrag( |"button", x1, y1, x2, y2 [,speed] )
;
[MouseDown | Perform a mouse down event at the current mouse position.]
MouseDown ( |"button" )
;
[MouseGetCursor | Returns a cursor ID Number of the current Mouse Cursor.]
MouseGetCursor ( |)
;
[MouseGetPos | Retrieves the current position of the mouse cursor.]
MouseGetPos ( |)
;
[MouseMove | Moves the mouse pointer.]
MouseMove ( |x, y [, speed] )
;
[MouseUp | Perform a mouse up event at the current mouse position.]
MouseUp ( |"button" )
;
[MsgBox | Displays a simple message box with optional timeout.]
MsgBox ( |flag, "title", "text" [, timeout] )
;
[Number | Returns the numeric representation of an expression.]
Number ( |expression )
;
[PixelGetColor | Returns a pixel color according to x,y pixel coordinates.]
PixelGetColor ( |x , y )
;
[PixelSearch | Searches a rectangle of pixels for the pixel color provided.]
PixelSearch ( |left, top, right, bottom, color [, shade-variation] [, step]]  )
;
[ProcessClose | Terminates a named process.]
ProcessClose ( |"process" )
;
[ProcessExists | Checks to see if a specified process exists.]
ProcessExists ( |"process" )
;
[ProcessWait | Pauses script execution until a given process exists.]
ProcessWait ( |"process" [, timeout] )
;
[ProcessWaitClose | Pauses script execution until a given process does not exist.]
ProcessWaitClose ( |"process" [, timeout] )
;
[ProgressOff | Turns Progress window off.]
ProgressOff ( |)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -