본문 바로가기

IT관련

오토핫키 명령어


오토핫키 명령어 리스트
Autohotkey Command List

오토핫키는 매크로 영역을 넘어서 스크립트언어라고 말할정도로 세계적인 호응을 얻고 있다.
오토잇과 더불어 매크로 분야 뛰어난 편리성을 자랑하고있는 가운데 최근들어 버전업 되면서 오토핫키가 단연 우수하다는 평을 받고 있다.
사실 유료버전보다 무료버전이 좋은것이 많지만 매크로 소프트웨어도 인터페이스만 요란한것과는 대조적으로 오토핫키는 어쩌면 허접하게 보이는 인터페이스와는 다르게 그 내용은 우수한것이 사실이다.
아래에 오토핫키를 더욱 빛내주는 강력한 커맨드리스트를 올려봅니다.
 
 
CommandDescription
{ ... }A pair of braces denotes a block. Blocks are typically used with functions, Else, Loop, While-loop, and IF-commands.
AutoTrimDetermines whether "Var1 = %Var2%" statements omit spaces and tabs from the beginning and end of Var2.
BlockInputDisables or enables the user's ability to interact with the computer via keyboard and mouse.
BreakExits (terminates) a loop. Valid inside any kind of loop.
ClickClicks a mouse button at the specified coordinates. It can also hold down a mouse button, turn the mouse wheel, or move the mouse.
ClipWaitWaits until the clipboard contains data.
ContinueSkips the rest of the current loop iteration and begins a new one. Valid inside any kind of loop.
ControlMakes a variety of changes to a control.
ControlClickSends a mouse button or mouse wheel event to a control.
ControlFocusSets input focus to a given control on a window.
ControlGetRetrieves various types of information about a control.
ControlGetFocusRetrieves which control of the target window has input focus, if any.
ControlGetPosRetrieves the position and size of a control.
ControlGetTextRetrieves text from a control.
ControlMoveMoves or resizes a control.
ControlSend / ControlSendRawSends simulated keystrokes to a window or control.
ControlSetTextChanges the text of a control.
CoordModeSets coordinate mode for various commands to be relative to either the active window or the screen.
CriticalPrevents the current thread from being interrupted by other threads.
DetectHiddenTextDetermines whether invisible text in a window is "seen" for the purpose of finding the window. This affects commands such as IfWinExist and WinActivate.
DetectHiddenWindowsDetermines whether invisible windows are "seen" by the script.
DllCall()Calls a function inside a DLL, such as a standard Windows API function.
DriveEjects/retracts the tray in a CD or DVD drive, or sets a drive's volume label.
DriveGetRetrieves various types of information about the computer's drive(s).
DriveSpaceFreeRetrieves the free disk space of a drive, in Megabytes.
EditOpens the current script for editing in the associated editor.
ElseSpecifies the command(s) to perform if an IF-statement evaluates to FALSE. When more than one command is present, enclose them in a block (braces).
EnvAddSets a variable to the sum of itself plus the given value (can also add or subtract time from a date-time value). Synonymous with: var += value
EnvDivSets a variable to itself divided by the given value. Synonymous with: var /= value
EnvGetRetrieves an environment variable.
EnvMultSets a variable to itself times the given value. Synonymous with: var *= value
EnvSetWrites a value to a variable contained in the environment.
EnvSubSets a variable to itself minus the given value (can also compare date-time values). Synonymous with: var -= value
EnvUpdateNotifies the OS and all running applications that environment variable(s) have changed.
ExitExits the current thread or (if the script is not persistent and contains no hotkeys) the entire script.
ExitAppTerminates the script unconditionally.
FileAppendWrites text to the end of a file (first creating the file, if necessary).
FileCopyCopies one or more files.
FileCopyDirCopies a folder along with all its sub-folders and files (similar to xcopy).
FileCreateDirCreates a folder.
FileCreateShortcutCreates a shortcut (.lnk) file.
FileDeleteDeletes one or more files.
FileInstallIncludes the specified file inside the compiled version of the script.
FileGetAttribReports whether a file or folder is read-only, hidden, etc.
FileGetShortcutRetrieves information about a shortcut (.lnk) file, such as its target file.
FileGetSizeRetrieves the size of a file.
FileGetTimeRetrieves the datetime stamp of a file or folder.
FileGetVersionRetrieves the version of a file.
FileMoveMoves or renames one or more files.
FileMoveDirMoves a folder along with all its sub-folders and files. It can also rename a folder.
FileReadReads a file's contents into a variable.
FileReadLineReads the specified line from a file and stores the text in a variable.
FileRecycleSends a file or directory to the recycle bin, if possible.
FileRecycleEmptyEmpties the recycle bin.
FileRemoveDirDeletes a folder.
FileSelectFileDisplays a standard dialog that allows the user to open or save file(s).
FileSelectFolder

Displays a standard dialog that allows the user to select a folder.

FileSetAttribChanges the attributes of one or more files or folders. Wildcards are supported.
FileSetTimeChanges the datetime stamp of one or more files or folders. Wildcards are supported.
FormatTimeTransforms a YYYYMMDDHH24MISS timestamp into the specified date/time format.
GetKeyStateChecks if a keyboard key or mouse/joystick button is down or up. Also retrieves joystick status.
GosubJumps to the specified label and continues execution until Return is encountered.
GotoJumps to the specified label and continues execution.
GroupActivateActivates the next window in a window group that was defined with GroupAdd.
GroupAddAdds a window specification to a window group, creating the group if necessary.
GroupCloseCloses the active window if it was just activated by GroupActivate or GroupDeactivate. It then activates the next window in the series. It can also close all windows in a group.
GroupDeactivateSimilar to GroupActivate except activates the next window not in the group.
GUICreates and manages windows and controls. Such windows can be used as data entry forms or custom user interfaces.
GuiControlMakes a variety of changes to a control in a GUI window.
GuiControlGetRetrieves various types of information about a control in a GUI window.
HideAutoItWin, On|Off[Obsolete -- the following is equivalent: Menu, tray, NoIcon|Icon]
HotkeyCreates, modifies, enables, or disables a hotkey while the script is running.
ifSpecifies the command(s) to perform if the comparison of a variable to a value evalutes to TRUE. When more than one command is present, enclose them in a block (braces).
if (expression)Specifies the command(s) to perform if an expression evaluates to TRUE.
If var [not] betweenChecks whether a variable's contents are numerically or alphabetically between two values (inclusive).
If var [not] in/contains MatchListChecks whether a variable's contents match one of the items in a list.
If var is [not] type
Checks whether a variable's contents are numeric, uppercase, etc.
IfEqual/IfNotEqual
Compares a variable to a value for equality. Synonymous with: if var = value | if var <> value
IfExist / FileExist() 
Checks for the existence of a file or folder.
IfGreater/IfGreaterOrEqual
Compares a variable to a value. Synonymous with: if var > value | if var >= value
IfInString / InStr() 
Checks if a variable contains the specified string.
IfLess/IfLessOrEqual
Compares a variable to a value. Synonymous with: if var < value | if var <= value
IfMsgBox
Checks which button was pushed by the user during the most recent MsgBox command.
IfWinActive / IfWinNotActive
Checks if the specified window exists and is currently active (foremost).
IfWinExist / IfWinNotExist
Checks if the specified window exists.
ImageSearchSearches a region of the screen for an image.
IniDeleteDeletes a value from a standard format .ini file.
IniReadReads a value from a standard format .ini file.
IniWriteWrites a value to a standard format .ini file.
InputWaits for the user to type a string (not supported on Windows 9x: it does nothing).
InputBoxDisplays an input box to ask the user to enter a string.
KeyHistoryDisplays script info and a history of the most recent keystrokes and mouse clicks.
KeyWaitWaits for a key or mouse/joystick button to be released or pressed down.
LeftClick[Obsolete -- use Click for greater flexibility]
LeftClickDrag[Obsolete -- use MouseClickDrag for greater flexibility]
ListHotkeysDisplays the hotkeys in use by the current script, whether their subroutines are currently running, and whether or not they use the keyboard or mouse hook.
ListLinesDisplays the script lines most recently executed.
ListVarsDisplays the script's variables: their names and current contents.
Loop (normal)Perform a series of commands repeatedly: either the specified number of times or until break is encountered.
Loop (files & folders)Retrieves the specified files or folders, one at a time.
Loop (parse a string)Retrieves substrings (fields) from a string, one at a time.
Loop (read file contents)Retrieves the lines in a text file, one at a time (performs better than FileReadLine).
Loop (registry)Retrieves the contents of the specified registry subkey, one item at a time.
MenuCreates, deletes, modifies and displays menus and menu items. Changes the tray icon and its tooltip. Controls whether the main window of a compiled script can be opened.
MouseClickClicks or holds down a mouse button, or turns the mouse wheel. NOTE: The Click command is generally more flexible and easier to use.
MouseClickDragClicks and holds the specified mouse button, moves the mouse to the destination coordinates, then releases the button.
MouseGetPosRetrieves the current position of the mouse cursor, and optionally which window and control it is hovering over.
MouseMoveMoves the mouse cursor.
MsgBoxDisplays the specified text in a small window containing one or more buttons (such as Yes and No).
OnExitSpecifies a subroutine to run automatically when the script exits.
OnMessage()Specifies a function to call automatically when the script receives the specified message.
OutputDebugSends a string to the debugger (if any) for display.
PausePauses the script's current thread.
PixelGetColorRetrieves the color of the pixel at the specified x,y coordinates.
PixelSearchSearches a region of the screen for a pixel of the specified color.
PostMessagePlaces a message in the message queue of a window or control.
ProcessPerforms one of the following operations on a process: checks if it exists; changes its priority; closes it; waits for it to close.
ProgressCreates or updates a window containing a progress bar.
RandomGenerates a pseudo-random number.
RegExMatch()Determines whether a string contains a pattern (regular expression).
RegExReplace()Replaces occurrences of a pattern (regular expression) inside a string.
RegDeleteDeletes a subkey or value from the registry.
RegReadReads a value from the registry.
RegWriteWrites a value to the registry.
RegisterCallback()Creates a machine-code address that when called, redirects the call to a function in the script.
ReloadReplaces the currently running instance of the script with a new one.
Repeat…EndRepeat
[Obsolete -- use Loop for greater flexibility]
ReturnReturns from a subroutine to which execution had previously jumped via function-call, Gosub, Hotkey activation, GroupActivate, or other means.
RightClick[Obsolete -- use Click for greater flexibility]
RightClickDrag[Obsolete -- use MouseClickDrag for greater flexibility]
RunRuns an external program.
RunAsSpecifies a set of user credentials to use for all subsequent uses of Run and RunWait. Requires Windows 2000/XP or later.
RunWaitRuns an external program and waits until it finishes.
Send / SendRaw / SendInput / SendPlaySends simulated keystrokes and mouse clicks to the active window.
SendMessageSends a message to a window or control and waits for acknowledgement.
SendModeMakes Send synonymous with SendInput or SendPlay rather than the default (SendEvent). Also makes Click and MouseMove/Click/Drag use the specified method.
SetBatchLinesDetermines how fast a script will run (affects CPU utilization).
SetCapslockStateSets the state of the Capslock key. Can also force the key to stay on or off.
SetControlDelaySets the delay that will occur after each control-modifying command.
SetDefaultMouseSpeedSets the mouse speed that will be used if unspecified in Click and MouseMove/Click/Drag.
SetEnv (Var = Value)Assigns the specified value to a variable.
SetFormatSets the format of integers and floating point numbers generated by math operations.
SetKeyDelaySets the delay that will occur after each keystroke sent by Send or ControlSend.
SetMouseDelaySets the delay that will occur after each mouse movement or click.
SetNumlockStateSets the state of the Numlock key. Can also force the key to stay on or off.
SetScrollLockStateSets the state of the Scrolllock key. Can also force the key to stay on or off.
SetStoreCapslockMode
Whether to restore the state of CapsLock after a Send.
SetTimerCauses a subroutine to be launched automatically and repeatedly at a specified time interval.
SetTitleMatchModeSets the matching behavior of the WinTitle parameter in commands such as WinWait.
SetWinDelaySets the delay that will occur after each windowing command, such as WinActivate.
SetWorkingDirChanges the script's current working directory.
ShutdownShuts down, restarts, or logs off the system.
SleepWaits the specified amount of time before continuing.
SortArranges a variable's contents in alphabetical, numerical, or random order (optionally removing duplicates).
SoundBeepEmits a tone from the PC speaker.
SoundGetRetrieves various settings from a sound device (master mute, master volume, etc.)
SoundGetWaveVolumeRetrieves the wave output volume from a sound device.
SoundPlayPlays a sound, video, or other supported file type.
SoundSetChanges various settings of a sound device (master mute, master volume, etc.)
SoundSetWaveVolumeChanges the wave output volume for a sound device.
SplashImageCreates or updates a window containing a JPG, GIF, or BMP image.
SplashTextOnCreates a customizable text popup window.
SplashTextOffCloses the above window.
SplitPathSeparates a file name or URL into its name, directory, extension, and drive.
StatusBarGetTextRetrieves the text from a standard status bar control.
StatusBarWaitWaits until a window's status bar contains the specified string.
StringCaseSenseDetermines whether string comparisons are case sensitive (default is "not case sensitive").
StringGetPos / InStr()Retrieves the position of the specified substring within a string.
StringLeftRetrieves a number of characters from the left-hand side of a string.
StringLen / StrLen()Retrieves the count of how many characters are in a string.
StringLowerConverts a string to lowercase.
StringMid / SubStr()Retrieves one or more characters from the specified position in a string.
StringReplaceReplaces the specified substring with a new string.
StringRightRetrieves a number of characters from the right-hand side of a string.
StringSplitSeparates a string into an array of substrings using the specified delimiters.
StringTrimLeftRemoves a number of characters from the left-hand side of a string.
StringTrimRightRemoves a number of characters from the right-hand side of a string.
StringUpperConverts a string to uppercase.
SuspendDisables or enables all or selected hotkeys and hotstrings.
SysGetRetrieves screen resolution, multi-monitor info, dimensions of system objects, and other system properties.
ThreadSets the priority or interruptibility of threads. It can also temporarily disable all timers.
ToolTipCreates an always-on-top window anywhere on the screen.
TransformPerforms miscellaneous math functions, bitwise operations, and tasks such as ASCII/Unicode conversion.
TrayTipCreates a balloon message window near the tray icon. Requires Windows 2000/XP or later.
UrlDownloadToFileDownloads a file from the Internet.
Var = valueAssigns the specified value to a variable.
Var := expressionEvaluates an expression and stores the result in a variable.
VarSetCapacity()Enlarges a variable's holding capacity or frees its memory. Normally, this is necessary only for unusual circumstances such as DllCall.
While-loopPerforms a series of commands repeatedly until the specified expression evaluates to false.
WinActivateActivates the specified window (makes it foremost).
WinActivateBottomSame as WinActivate except that it activates the bottommost (least recently active) matching window rather than the topmost.
WinCloseCloses the specified window.
WinGetActiveStatsCombines the functions of WinGetActiveTitle and WinGetPos into one command.
WinGetActiveTitleRetrieves the title of the active window.
WinGetClassRetrieves the specified window's class name.
WinGetRetrieves the specified window's unique ID, process ID, process name, or a list of its controls. It can also retrieve a list of all windows matching the specified criteria.
WinGetPosRetrieves the position and size of the specified window.
WinGetTextRetrieves the text from the specified window.
WinGetTitleRetrieves the title of the specified window.
WinHideHides the specified window.
WinKillForces the specified window to close.
WinMaximizeEnlarges the specified window to its maximum size.
WinMenuSelectItemInvokes a menu item from the menu bar of the specified window.
WinMinimizeCollapses the specified window into a button on the task bar.
WinMinimizeAllMinimizes all windows.
WinMinimizeAllUndoReverses the effect of a previous WinMinimizeAll.
WinMoveChanges the position and/or size of the specified window.
WinRestoreUnminimizes or unmaximizes the specified window if it is minimized or maximized.
WinSetMakes a variety of changes to the specified window, such as "always on top" and transparency.
WinSetTitleChanges the title of the specified window.
WinShowUnhides the specified window.
WinWaitWaits until the specified window exists.
WinWaitActiveWaits until the specified window is active.
WinWaitCloseWaits until the specified window does not exist.
WinWaitNotActiveWaits until the specified window is not active.
#AllowSameLineCommentsOnly for AutoIt v2 (.aut) scripts: Allows a comment to appear on the same line as a command.
#ClipboardTimeoutChanges how long the script keeps trying to access the clipboard when the first attempt fails.
#CommentFlagChanges the script's comment symbol from semicolon to some other string.
#ErrorStdOutSends any syntax error that prevents a script from launching to stdout rather than displaying a dialog.
#EscapeCharChanges the script's escape character (for example: backslash vs. accent).
#HotkeyIntervalAlong with #MaxHotkeysPerInterval, specifies the rate of hotkey activations beyond which a warning dialog will be displayed.
#HotkeyModifierTimeoutAffects the behavior of hotkey modifiers: CTRL, ALT, WIN, and SHIFT.
#HotstringChanges hotstring options or ending characters.
#IfWinActive / #IfWinExistCreates context-sensitive hotkeys and hotstrings. Such hotkeys perform a different action (or none at all) depending on the type of window that is active or exists.
#IncludeCauses the script to behave as though the specified file's contents are present at this exact position.
#InstallKeybdHookForces the unconditional installation of the keyboard hook.
#InstallMouseHookForces the unconditional installation of the mouse hook.
#KeyHistorySets the maximum number of keyboard and mouse events displayed by the KeyHistory window. You can set it to 0 to disable key history.
#MaxHotkeysPerIntervalAlong with #HotkeyInterval, specifies the rate of hotkey activations beyond which a warning dialog will be displayed.
#MaxMemSets the maximum capacity of each variable to the specified number of megabytes.
#MaxThreadsSets the maximum number of simultaneous threads.
#MaxThreadsBufferCauses some or all hotkeys to buffer rather than ignore keypresses when their #MaxThreadsPerHotkey limit has been reached.
#MaxThreadsPerHotkeySets the maximum number of simultaneous threads per hotkey or hotstring.
#NoEnvAvoids checking empty variables to see if they are environment variables (recommended for all new scripts).
#NoTrayIconDisables the showing of a tray icon.
#PersistentKeeps a script permanently running (that is, until the user closes it or ExitApp is encountered).
#SingleInstanceDetermines whether a script is allowed to run again when it is already running.
#UseHookForces the use of the hook to implement all or some keyboard hotkeys.
#WinActivateForce

Skips the gentle method of activating a window and goes straight to the forceful method.



-출처: 
http://blog.yougom.com/127