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

📄 autoit.def

📁 是一个很好的编辑器
💻 DEF
📖 第 1 页 / 共 2 页
字号:
;
[{}} |N }]
{}}
;
[{SPACE} |N SPACE]
{SPACE}
;
[{ENTER} |N ENTER]
{ENTER}
;
[{ALT} |N ALT]
{ALT}
;
[{BACKSPACE} |N BACKSPACE]
{BACKSPACE}
;
[{DEL} |N DELETE]
{DEL}
;
[{UP} |N Cursor up]
{UP}
;
[{DOWN} |N Cursor down]
{DOWN}
;
[{LEFT} |N Cursor left]
{LEFT}
;
[{RIGHT} |N Cursor right]
{RIGHT}
;
[{HOME} |N HOME]
{HOME}
;
[{END} |N END]
{END}
;
[{ESC} |N ESCAPE]
{ESC}
;
[{INS} |N INS]
{INS}
;
[{PGUP} |N PGUP]
{PGUP}
;
[{PGDN} |N PGDN]
{PGDN}
;
[{F1} |N Function keys]
{F1}
;
[{F2} |N Function keys]
{F2}
;
[{F3} |N Function keys]
{F3}
;
[{F4} |N Function keys]
{F4}
;
[{F5} |N Function keys]
{F5}
;
[{F6} |N Function keys]
{F6}
;
[{F7} |N Function keys]
{F7}
;
[{F8} |N Function keys]
{F8}
;
[{F9} |N Function keys]
{F9}
;
[{F10} |N Function keys]
{F10}
;
[{F11} |N Function keys]
{F11}
;
[{F12} |N Function keys]
{F12}
;
[{TAB} |N TAB]
{TAB}
;
[{PRINTSCREEN} |N PRINTSCR]
{PRINTSCREEN}
;
[{LWIN} |N Left Windows key]
{LWIN}
;
[{RWIN} |N Right Windows key]
{RWIN}
;
[{NUMLOCK} |N NUMLOCK]
{NUMLOCK}
;
[{CTRLBREAK} |N Ctrl+break]
{CTRLBREAK}
;
[{PAUSE} |N PAUSE]
{PAUSE}
;
[{CAPSLOCK} |N CAPSLOCK]
{CAPSLOCK}
;
[{NUMPAD0} |N Numpad digits]
{NUMPAD0}
;
[{NUMPAD1} |N Numpad digits]
{NUMPAD1}
;
[{NUMPAD2} |N Numpad digits]
{NUMPAD2}
;
[{NUMPAD3} |N Numpad digits]
{NUMPAD3}
;
[{NUMPAD4} |N Numpad digits]
{NUMPAD4}
;
[{NUMPAD5} |N Numpad digits]
{NUMPAD5}
;
[{NUMPAD6} |N Numpad digits]
{NUMPAD6}
;
[{NUMPAD7} |N Numpad digits]
{NUMPAD7}
;
[{NUMPAD8} |N Numpad digits]
{NUMPAD8}
;
[{NUMPAD9} |N Numpad digits]
{NUMPAD9}
;
[{NUMPADMULT} |N Numpad Multiply]
{NUMPADMULT}
;
[{NUMPADADD} |N Numpad Add]
{NUMPADADD}
;
[{NUMPADSUB} |N Numpad Subtract]
{NUMPADSUB}
;
[{NUMPADDIV} |N Numpad Divide]
{NUMPADDIV}
;
[{NUMPADDOT} |N Numpad period]
{NUMPADDOT}
;
[{APPSKEY} |N Windows App key]
{APPSKEY}
;
[{ALTDOWN} |N Holds the ALT key down until {ALTUP} is sent]
{ALTDOWN}
;
[{SHIFTDOWN} |N Holds the SHIFT key down until {SHIFTUP} is sent]
{SHIFTDOWN}
;
[{CTRLDOWN} |N Holds the CTRL key down until {CTRLUP} is sent]
{CTRLDOWN}
;
[{ASC nnnn} |N Send the ALT+nnnn key combination]
{ASC %CharCode%}
;
[SetBatchLines | Usually, AutoIt executes each line of a script during a 10ms timer cycle (under NT is it 10ms, under 9x it could be a much larger time). This can mean that in scripts which do a lot of String/Variable processing, the scripts can be quite slow. The SetBatchLines command can be used to change the number of script lines that are processed in a timer cycle. The default is 1. The maximum value is 32767. Note: For very high values, AutoIt will start to impact the available CPU time. The current value of SetBatchLines can be obtained from the special variable "A_NUMBATCHLINES".]
SetBatchLines, %Number%
|
;
[SetKeyDelay | Changes the delay between keystrokes in milliseconds. Max is 32767. Default is 20ms. 1000 milliseconds = 1 second.]
SetKeyDelay, %Milliseconds%
|
;
[SetStoreCapslockMode | By default, at the start of a "Send" command AutoIt will store the state of the CAPSLOCK key; at the end of the "Send" command this status will be restored. Use this command to turn off this behavior.]
SetStoreCapslockMode, %OnOff%
|
;
[SetTitleMatchMode | Changes the way that window titles are matched against the script. Valid modes are "1" and "2" - the default is "1". This mode affects most of the commands within AutoIt that have any sort of window title and text in the command, i.e. WinWait, WinWaitActive, IfWinActive, etc.]
SetTitleMatchMode, %TitleMatchMode%
|
;
[SetWinDelay | This changes the time that AutoIt pauses after carrying out a window related function (waiting for, minimizing, restoring, etc.) before continuing. This is useful on very slow machines, or when you have things like window animation enabled. The default is 500 milliseconds.]
SetWinDelay, %Milliseconds%
|
;
[Shutdown | This command allows you to perform various forms of shutdown. The type is determined by <Flag>.]
;;Function					Flag
;;Log off the current user	0
;;Shutdown the workstation	1
;;Reboot the workstation		2
;;Force closing of applications (may lose unsaved work) 4
;;Shutdown and power off (if supported) 8
;
;;e.g. To shutdown and force applications to close without saving = Shutdown + Force = 1 + 4 = 5:
Shutdown, %Flag%
|
;
[Sleep | Halts execution of the script for the given number of milliseconds. Max is 32767 (1000 milliseconds = 1 second).]
;; Max is 32767 (1000 milliseconds = 1 second)
Sleep, %Milliseconds%
|
;
[SplashTextOn | This command brings up a window the specified message and title. The window stays topmost without interfering with windows behind it. Useful for automation when you can bring up a "Don't Touch" message for the user without affecting other windows.]
SplashTextOn, %Width%, %Height%, %Title%, %Message%
|
;
[SplashTextOff | Removes the splash text screen from view.]
SplashTextOff
|
;
[StringCaseSense | This command will turn case sensitivity on or off for the commands: IfEqual, IfNotEqual, IfInString, IfNotInString, StringReplace and StringGetPos.]
;; This command will turn case sensitivity on or off for the commands:
;; IfEqual, IfNotEqual, IfInString, IfNotInString, StringReplace and StringGetPos.
StringCaseSense, %OnOff%
|
;
[StringLeft | This command takes the contents of <Input Variable>, extracts a number of characters and places the result in <Output Variable>.]
StringLeft, %OutputVariable% , %InputVariable%, %NumberOfChars%
|
;
[StringRight | This command takes the contents of <Input Variable>, extracts a number of characters and places the result in <Output Variable>.]
StringRight, %OutputVariable% , %InputVariable%, %NumberOfChars%
|
;
[StringMid | This command takes the contents of <Input Variable>, extracts a number of characters starting from <Start char> and places the result in <Output Variable>.]
StringMid, %OutputVariable% , %InputVariable%, %StartChar%, %NumberOfChars%
|
;
[StringLen | This command takes the contents of <Input Variable> and puts the number of characters in the string into <Output Variable>.]
StringLen, %OutputVariable% , %InputVariable%
|
;
[StringReplace | This command will search for the <Search String> in the contents of the variable <Input Variable>. The search string will be replace by <Replace String> and the result will be placed in the variable <Output Variable>. If the search string cannot be found, the contents of <Output Variable> will be the same as <Input Variable>.]
StringReplace, %OutputVariable% , %InputVariable%, %SearchString%, %ReplaceString%
|
;
[StringTrimLeft | This command takes the contents of <Input Variable>, trims a number of characters and places the result in <Output Variable>.]
StringTrimLeft, %OutputVariable% , %InputVariable%, %NumberOfChars%
|
;
[StringTrimRight | This command takes the contents of <Input Variable>, trims a number of characters and places the result in <Output Variable>.]
StringTrimRight, %OutputVariable% , %InputVariable%, %NumberOfChars%
|
;
[StringGetPos | This command takes the contents of <Input Variable>, searches for the string <Search Text> and returns the position of the string in <Output Variable>. If the search string is not found, %ERRORLEVEL% is set to 1, otherwise it is set to 0. Position "0" is the first character.]
StringGetPos, %OutputVariable% , %InputVariable%, %SearchString%
|
;
[WinGetActiveStats | This command allows you to receive much information from the active window, including: Windows title, window width, window height, window x-position and window y-position.]
WinGetActiveStats, %TitleVar%, %WidthVar%, %HeightVar%, %XposVar%, %YposVar%
|
;
[WinGetActiveTitle | This command gets the title of the active window and puts it in the DOS variable <Variable>]
WinGetActiveTitle, %TitleVar%
|
;
[WinKill | Similar to WinClose, but if the window has not closed after a couple of seconds (Asking to save, crashed, etc.) the window will be forcibly terminated.]
WinKill, %Title% ,%Text%
|
;
[WinWait | Stops script execution until the specified window exists. The window does not need be active.]
WinWait, %Title% ,%Text%, %Timeout%
|

[WinWaitClose | Stops script execution until the specified window ceases to exist.]
WinWaitClose, %Title% ,%Text%, %Timeout%
|
;
[WinWaitActive | Stops script execution until the specified window to exists and is active.]
WinWaitActive, %Title% ,%Text%, %Timeout%
|
;
[WinWaitNotActive | Stops script execution until the specified window ceases to be active.]
WinWaitNotActive, %Title% ,%Text%, %Timeout%
|
;
[WinHide | If the window exists, the relevant command (i.e. minimizing, hiding, activating, etc.) will be performed.]
WinHide, %Title%%Text2%
|
;
[WinShow | If the window exists, the relevant command (i.e. minimizing, hiding, activating, etc.) will be performed.]
WinShow, %Title%%Text2%
|
;
[WinRestore | If the window exists, the relevant command (i.e. minimizing, hiding, activating, etc.) will be performed.]
WinRestore, %Title%%Text2%
|
;
[WinMinimize | If the window exists, the relevant command (i.e. minimizing, hiding, activating, etc.) will be performed.]
WinMinimize, %Title%%Text2%
|
;
[WinMaximize | If the window exists, the relevant command (i.e. minimizing, hiding, activating, etc.) will be performed.]
WinMaximize, %Title%%Text2%
|
;
[WinActivate | If the window exists, the relevant command (i.e. minimizing, hiding, activating, etc.) will be performed.]
WinActivate, %Title%%Text2%
|
;
[WinClose | If the window exists, the relevant command (i.e. minimizing, hiding, activating, etc.) will be performed.]
WinClose, %Title%%Text2%
|
;
[WinMove | If the window in Title and Text exists, it is moved to <X>, <Y> and resized to <Width>, <Height>]
WinMove, %Title% ,%Text%, %x%, %y%, %Width%, %Height%
|
;
[WinSetTitle | Use this command to rename a window.]
WinSetTitle, %Title%, %Text%, %NewTitle%
|
;
[WinMinimizeAll | The "WinMinimizeAll" command minimizes all windows; "WinMinimizeAllUndo" will undo this action. If any windows are manipulated by AutoIt or the user, then "WinMinimizeAllUndo" will not have any effect on these "touched" windows.]
WinMinimizeAll
|
;
[WinMinimizeAllUndo | The "WinMinimizeAll" command minimizes all windows; "WinMinimizeAllUndo" will undo this action. If any windows are manipulated by AutoIt or the user, then "WinMinimizeAllUndo" will not have any effect on these "touched" windows.]
WinMinimizeAllUndo
|

⌨️ 快捷键说明

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