일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- SetTitleMatchMode
- 배열
- Blocks
- MouseClick
- ControlSend
- SetMouseDelay
- DetectHiddenWindows
- EnvMult
- IfWinExist
- Menu
- 식
- EnvSet
- IF (식)
- 함수
- SetKeyDelay
- API
- if
- SetControlDelay
- if(식)
- Var:=식
- EnvSub
- EnvDiv
- autohotkey
- IfInString
- Threads
- ControlGetText
- SetEnv
- EnvAdd
- StringGetPos
- 식의 설명
- Today
- Total
ㄴrㅎnㅂrㄹrㄱi
Creating a Keyboard Macro or Mouse Macro 본문
Creating a Keyboard Macro or Mouse Macro
A macro is a series of scripted actions that is "played" upon demand. The most common activity of a macro is to send simulated keystrokes and mouse clicks to one or more windows. Such windows respond to each keystroke and mouse click as though you had performed it manually, which allows repetitive tasks to be automated with high speed and reliability.
Although macros can be written by hand, you might find it easier to write long ones with the aid of AutoScriptWriter, which is a macro recorder included with AutoHotkey. It watches what you type and where you click, and keeps track of which window is active. It transcribes these actions into a working macro that can later be "played back" at a faster speed.
One of the most convenient ways to play back a macro is to assign it to a hotkey or hotstring. For example, the following hotkey would create an empty e-mail message and prepare it for a certain type recipient, allowing you to personalize it prior to sending:
^!s:: ; Control+Alt+S hotkey. IfWinNotExist Inbox - Microsoft Outlook return ; Outlook isn't open to the right section, so do nothing. WinActivate ; Activate the window found by the above command. Send ^n ; Create new/blank e-mail via Control+N. WinWaitActive Untitled Message Send {Tab 2}Product Recall for ACME Rocket Skates ; Set the subject line. Send {Tab}Dear Sir or Madam,{Enter 2}We have recently discovered a minor defect ... ; etc. return ; This line serves to finish the hotkey.
Hotkey macros like the above are especially useful for tasks you perform several times per day. By contrast, macros used less often can each be kept in a separate script accessible by means of a shortcut in the Start Menu or on the desktop.
To start creating your own macros and hotkeys right away, please read the Quick-start Tutorial.
'AUTOHOTKEY > 레퍼런스' 카테고리의 다른 글
Another text converter/encripter (Lewis Carrolls Cipher) (0) | 2008.12.30 |
---|---|
#AllowSameLineComments (0) | 2008.12.30 |
Click (0) | 2008.12.30 |
My Scripts (0) | 2007.11.08 |
|| 연산자(논리합) 개의 식의 논리합의 진위치를 돌려주는 연산자 (0) | 2007.11.08 |