📄 autoit3.def
字号:
;
[ProgressOn | Creates a customizable progress bar window.]
ProgressOn ( |"title", "maintext" [, "subtext" [, x pos [, y pos [, opt]]]] )
;
[ProgressSet | Sets the position and/or text of a previously created Progress bar window.]
ProgressSet ( |percent [, "subtext" [, "maintext"]] )
;
[Random | Generates a pseudo-random float-type number.]
Random ( |[[Min ,] Max] )
;
[RegDelete | Deletes a key or value from the registry.]
RegDelete ( |"keyname" [, "valuename"] )
;
[RegRead | Reads a value from the registry.]
RegRead ( |"keyname", "valuename" )
;
[RegWrite | Writes a value to the registry.]
RegWrite ( |"keyname", "valuename", "type", value )
;
[Round | Returns a number rounded to a specified number of decimal places.]
Round ( |expression [, decimalplaces] )
;
[Run | Runs an external program.]
Run ( |"filename" [, "workingdir" [, flag]] )
;
[RunAsSet | Initialise a set of user credentials to use during Run and RunWait operations. 2000/XP or later ONLY.]
RunAsSet ( |["user", "domain", "password"] )
;
[RunWait | Runs an external program and pauses script execution until the program finishes.]
RunWait ( |"filename" [, "workingdir" [, flag]] )
;
[Send | Sends simulated keystrokes to the active window.]
Send ( |"keys" [, flag] )
;
[SetError | Manually set the value of the @error macro.]
SetError ( |code )
;
[Shutdown | Shuts down the system.]
Shutdown ( |code )
;
[Sin | Calculates the sine of a number.]
Sin ( |expression )
;
[Sleep | Pause script execution.]
Sleep ( |delay )
;
[SoundPlay | Play a sound file.]
SoundPlay ( |"filename" [, wait] )
;
[SoundSetWaveVolume | Sets the system wave volume by percent.]
SoundSetWaveVolume ( |percent )
;
[SplashImageOn | Creates a customizable image popup window.]
SplashImageOn ( |"title", "file" [, width [, height [, x pos [, y pos [, opt]]]]] )
;
[SplashOff | Turns SplashText or SplashImage off.]
SplashOff ( |)
;
[SplashTextOn | Creates a customizable text popup window.]
SplashTextOn ("title", "text" [, w [, h [, x pos [, y pos [, opt [, "fontname" [, "fontsz" [, "fontwt"]]]]]]]] )
;
[Sqrt | Calculates the square-root of a number.]
Sqrt ( |expression )
;
[StatusbarGetText | Retrieves the text from a standard status bar control.]
StatusbarGetText ( |"title" [, "text" [, part]] )
;
[String | Returns the string representation of an expression.]
String ( |expression )
;
[StringAddCR | Takes a string and prefixes all linefeed characters ( Chr(10) ) with a carriage return character ( Chr(13) ).]
StringAddCR ( |"string" )
;
[StringFormat | Returns a formatted string (similar to the C sprintf() function).]
StringFormat ( |"format control", $var1 [, ... $var32] )
;
[StringInStr | Checks if a string contains a given substring.]
StringInStr ( |"string", "substring" [, casesense] )
;
[StringIsAlNum | Checks if a string contains only alphanumeric characters.]
StringIsAlNum ( |"string" )
;
[StringIsAlpha | Checks if a string contains only alphabetic characters.]
StringIsAlpha ( |"string" )
;
[StringIsASCII | Checks if a string contains only ASCII characters in the range 0x00 - 0x7f (0 - 127).]
StringIsASCII ( |"string" )
;
[StringIsDigit | Checks if a string contains only digit (0-9) characters.]
StringIsDigit ( |"string" )
;
[StringIsFloat | Checks if a string is a floating point number.]
StringIsFloat ( |"string" )
;
[StringIsInt | Checks if a string is an integer.]
StringIsInt ( |"string" )
;
[StringIsLower | Checks if a string contains only lowercase characters.]
StringIsLower ( |"string" )
;
[StringIsSpace | Checks if a string contains only whitespace characters.]
StringIsSpace ( |"string" )
;
[StringIsUpper | Checks if a string contains only uppercase characters.]
StringIsUpper ( |"string" )
;
[StringIsXDigit | Checks if a string contains only hexadecimal digit (0-9, A-F) characters.]
StringIsXDigit ( |"string" )
;
[StringLeft | Returns a number of characters from the left-hand side of a string.]
StringLeft ( |"string", count )
;
[StringLen | Returns the number of characters in a string.]
StringLen ( |"string" )
;
[StringLower | Converts a string to lowercase.]
StringLower ( |"string" )
;
[StringMid | Extracts a number of characters from a string.]
StringMid ( |"string", start, count )
;
[StringReplace | Replaces substrings in a string.]
StringReplace ( |"string", "searchstring", "replacestring" [, count [, casesense]] )
;
[StringRight | Returns a number of characters from the right-hand side of a string.]
StringRight ( |"string", count )
;
[StringSplit | Splits up a string into substrings depending on the given delimiters.]
StringSplit ( |"string", "delimiters" )
;
[StringStripCR | Removes all carriage return values ( Chr(13) ) from a string.]
StringStripCR ( |"string" )
;
[StringStripWS | Strips the white space in a string.]
StringStripWS ( |"string", flag )
;
[StringTrimLeft | Trims a number of characters from the left hand side of a string.]
StringTrimLeft ( |"string", count )
;
[StringTrimRight | Trims a number of characters from the right hand side of a string.]
StringTrimRight ( |"string", count )
;
[StringUpper | Converts a string to uppercase.]
StringUpper ( |"string" )
;
[Tan | Calculates the tangent of a number.]
Tan ( |expression )
;
[TimerStart | Returns a timestamp (in milliseconds).]
TimerStart ( |)
;
[TimerStop | Returns a difference in time from a previous call to StartTimer().]
TimerStop ( |timestamp )
;
[TrayTip | Displays a balloon tip from the AuotIt Icon. (2000/XP only)]
TrayTip ( |"title", "text", timeout [, option] )
;
[UBound | Returns the size of array dimensions.]
UBound ( |Array [, Dimension] )
;
[URLDownloadToFile | Downloads a file from the internet.]
URLDownloadToFile ( |"URL", "filename" )
;
[WinActivate | Activates (gives focus to) a window.]
WinActivate ( |"title" [, "text"] )
;
[WinActive | Checks to see if a specified window exists and is currently active.]
WinActivate ( |"title" [, "text"] )
;
[WinClose | Closes a window.]
WinClose ( |"title" [, "text"] )
;
[WinExists | Checks to see if a specified window exists.]
WinExists ( |"title" [, "text"] )
;
[WinGetCaretPos | Returns the coordinates of the caret in the foreground window]
WinGetCaretPos ( |)
;
[WinGetClassList | Retrieves the classes from a window.]
WinGetClassList ( |"title" [, "text"] )
;
[WinGetClientSize | Retrieves the size of a given window's client area.]
WinGetClientSize ( |"title" [, "text"] )
;
[WinGetHandle | Retrieves the internal handle of a window.]
WinGetHandle ( |"title" [, "text"] )
;
[WinGetPos | Retrieves the position and size of a given window.]
WinGetPos ( |"title" [, "text"] )
;
[WinGetState | Retrieves the state of a given window.]
WinGetState ( |"title" [, "text"] )
;
[WinGetText | Retrieves the text from a window.]
WinGetText ( |"title" [, "text"] )
;
[WinGetTitle | Retrieves the full title from a window.]
WinGetTitle ( |"title" [, "text"] )
;
[WinKill | Forces a window to close.]
WinKill ( |"title" [, "text"] )
;
[WinMenuSelectItem | Invokes a menu item of a window.]
WinMenuSelectItem ( |"title", "text", "item" [, "item" [, "item" [, "item" [, "item" [, "item" [, "item"]]]]]] )
;
[WinMinimizeAll | Minimizes all windows.]
WinMinimizeAll ( |)
;
[WinMinimizeAllUndo | Undoes a previous WinMinimizeAll function.]
WinMinimizeAllUndo ( |)
;
[WinMove | Moves and/or resizes a window.]
WinMove ( |"title", "text", x, y [, width [, height]] )
;
[WinSetOnTop | Change a window's "Always On Top" attribute.]
WinSetOnTop ( |"title", "text", flag )
;
[WinSetTitle | Changes the title of a window.]
WinSetTitle ( |"title", "text", "newtitle" )
;
[WinShow | Shows, hides, minimizes, maximizes, or restores a window.]
WinShow ( |"title", "text", flag )
;
[WinWait | Pauses execution of the script until the requested window exists.]
WinWait ( |"title" [, "text" [, timeout]] )
;
[WinWaitActive | Pauses execution of the script until the requested window is active.]
WinWaitActive ( |"title", ["text"], [timeout] )
;
[WinWaitClose | Pauses execution of the script until the requested window does not exist.]
WinWaitClose ( |"title" [, "text" [, timeout]] )
;
[WinWaitNotActive | Pauses execution of the script until the requested window is not active.]
WinWaitNotActive ( |"title" [, "text" [, timeout]] )
;
[@AppDataCommonDir | path to Application Data]
@AppDataCommonDir
;
[@AppDataDir | path to current user's Application Data]
@AppDataDir
;
[@AutoItVersion | Version number of AutoIt such as 3.0.81.0]
@AutoItVersion
;
[@CommonFilesDir | path to Common Files folder]
@CommonFilesDir
;
[@Compiled | Returns 1 if script is a compiled executable; otherwise, returns 0.]
@Compiled
;
[@ComputerName | Computer's network name.]
@ComputerName
;
[@ComSpec | value of %comspec%, the SPECified secondary COMmand interpreter;<br>primarly for command line uses, e.g. <i>Run(@ComSpec & " /k help | more")</i>]
@ComSpec
;
[@CR | Carriage return, Chr(13); sometimes used for line breaks.]
@CR
;
[@CRLF | = @CR & @LF ;occasionally used for line breaks.]
@CRLF
;
[@DesktopCommonDir | path to Desktop]
@DesktopCommonDir
;
[@DesktopDir | path to current user's Desktop]
@DesktopDir
;
[@DesktopHeight | Height of screen in pixels. (horizontal resolution)]
@DesktopHeight
;
[@DesktopWidth | Width of screen in pixels. (vertical resolution)]
@DesktopWidth
;
[@DocumentsCommonDir | path to Documents]
@DocumentsCommonDir
;
[@error | Status of the error flag. See the SetError function.]
@error
;
[@FavoritesCommonDir | path to Favorites]
@FavoritesCommonDir
;
[@FavoritesDir | path to current user's Favorites]
@FavoritesDir
;
[@HomeDrive | drive letter of drive containing current user's home directory]
@HomeDrive
;
[@HomePath | directory part of current user's home directory; use in conjunction with @HomeDrive to get the full path]
@HomePath
;
[@HomeShare | server and share name containing current user's home directory]
@HomeShare
;
[@HOUR | Hours value of clock in 24-hour format. Range is 00 to 23]
@HOUR
;
[@IPAddress1 | IP address of first network adapter. Tends to return 127.0.0.1 on some computers.<br>]
@IPAddress1
;
[@IPAddress2 | IP address of second network adapter. Returns 0.0.0.0 if not applicable.]
@IPAddress2
;
[@IPAddress3 | IP address of third network adapter. Returns 0.0.0.0 if not applicable.]
@IPAddress3
;
[@IPAddress4 | IP address of fourth network adapter. Returns 0.0.0.0 if not applicable.]
@IPAddress4
;
[@LF | Line feed, Chr(10); typically used for line breaks.]
@LF
;
[@LogonDNSDomain | Logon Domain Name Server Domain]
@LogonDNSDomain
;
[@LogonDomain | equivalent to %LOGONDOMAIN% environment variable]
@LogonDomain
;
[@LogonServer | equivalent to %LOGONSERVER% environment variable]
@LogonServer
;
[@MDAY | Current day of month. Range is 01 to 31]
@MDAY
;
[@MIN | Minutes value of clock. Range is 00 to 59]
@MIN
;
[@MON | Current month. Range is 01 to 12]
@MON
;
[@MyDocumentsDir | path to My Documents target]
@MyDocumentsDir
;
[@OSBuild | Returns the OS build number. For example, Windows 2003 Server returns 3790]
@OSBuild
;
[@OSLang | Returns code denoting OS Language. See <a href="appendix/OSLangCodes.htm">Appendix</a> for possible values.]
@OSLang
;
[@OSServicePack | Service pack info in the form of "Service Pack 3" or, for Windows 95, it may return "B"]
@OSServicePack
;
[@OSTYPE | Returns "WIN32_NT" for NT/2000/XP and returns "WIN32_WINDOWS" for 95/98/Me]
@OSTYPE
;
[@OSVersion | Returns one of the following: WIN_XP, WIN_2000, WIN_NT4, WIN_ME, WIN_98, WIN_95]
@OSVersion
;
[@ProgramFilesDir | path to Program Files folder]
@ProgramFilesDir
;
[@ProgramsCommonDir | path to Start Menu's Programs folder]
@ProgramsCommonDir
;
[@ProgramsDir | path to current user's Programs (folder on Start Menu)]
@ProgramsDir
;
[@ScriptDir | Directory containing the running script. (Result does not contain a trailing backslash)]
@ScriptDir
;
[@ScriptFullPath | Equivalent to @ScriptDir & "\" & @ScriptName]
@ScriptFullPath
;
[@ScriptName | Long filename of the running script.]
@ScriptName
;
[@SEC | Seconds value of clock. Range is 00 to 59]
@SEC
;
[@StartMenuCommonDir | path to Start Menu folder]
@StartMenuCommonDir
;
[@StartMenuDir | path to current user's Start Menu]
@StartMenuDir
;
[@StartupCommonDir | path to Startup folder]
@StartupCommonDir
;
[@StartupDir | current user's Startup folder]
@StartupDir
;
[@SW_HIDE | Hide window.]
@SW_HIDE
;
[@SW_MAXIMIZE | Maximize window.]
@SW_MAXIMIZE
;
[@SW_MINIMIZE | Minimize window.]
@SW_MINIMIZE
;
[@SW_RESTORE | Undoes a window minimization or maximization]
@SW_RESTORE
;
[@SW_SHOW | Shows a previously hidden window.]
@SW_SHOW
;
[@SystemDir | path to Windows' System (or System32) folder]
@SystemDir
;
[@TAB | Tab character, Chr(9)]
@TAB
;
[@TempDir | Path to the temporary files folder.]
@TempDir
;
[@UserProfileDir | path to current user's Profile folder]
@UserProfileDir
;
[@UserName | ID of the currently logged on user.]
@UserName
;
[@WDAY | Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.]
@WDAY
;
[@WindowsDir | path to Windows folder]
@WindowsDir
;
[@WorkingDir | Current/active working directory. (Result does not contain a trailing backslash)]
@WorkingDir
;
[@YDAY | Current day of year. Range is 1 to 366 (or 365 if not a leap year)]
@YDAY
;
[@YEAR | Current four-digit year]
@YEAR
;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -