'매크로프로그램'에 해당되는 글 5건

  1. 2011.01.29 오토핫키 왕초보(3) (2)
  2. 2010.12.31 오토핫키 왕초보 (2) (4)
  3. 2010.07.12 오토핫키 왕초보 첫걸음 (5)
  4. 2010.07.07 오토핫키 명령어 (4)
  5. 2010.05.11 유용한 무료프로그램 - 매크로 프로그램

오토핫키 실행문서 만들기

오토핫키

오토핫키는 명령어들을 텍스트형태로 나열한 문장의 연속이다.
특별한 명령이 없는한 문장은 차례대로 실행되며 문장이 끝나는 마지막줄 마지막 단어에서 멈춘다.

처음소개할때 아주 단순한 오토핫키문서를 소개한적이있지만 이제는 사용할수 있는 문서를 만들어 본다.

1.명령어는 아니지만 기본적으로 알아야할 몇가지 약속부호들을 알아본다.

문서에서 ";" 표시가 전치된 문장은 그 문장의 끝가지 무시한다.
* 자기만의 설명을 덛붙일때나 메모나 스크립트의 주석문을 붙일때 사용한다.

"# "는 윈도우 키를 누른다는 표시이다.
"::" 표시를 만나면 스크립트를 실행한다.
"^" 컨트롤키(CTR)를 누른다는 표시이다.
"!" 알트(ALT)키를 누른다는 표시이다.

오토핫키 명령어를 나열하는 문장은 싱글라인 형태와 멀티라인형태가 있는데 동작이나 속도나 똑같다.
다만 숙련된 사용자가 스크립트를 효율적으로 작성하거나 편리한 방법대로 그때그때 적절히 이용할수있다.

싱글라인스크립트는 필요한 명령어나 주석문등을 독립된 줄로 여러줄 나열하면된다.

다만 멀티라인 스크립트를 작성할때는 오토핫키를 먼저 정의한후에 명령어들을 나열하고 마지막에 Return을 붙이는것으로 작동한다.

처음 보인 간단한 스크립트 예

; 이 스크립트는 오토핫키 입문자가 처음 작성하는 스크립드입니다.
;극초보 시험 매크로
;출발
; 2편의 명령어 리스트에서 필요한 명령어를 찾아서 적절히 배합하면 되고 Widow Spy 나 AutoScriptWrite로 필
; 요한 스크립트를 발췌한다.
; 핫키주석을 쓸때는 ';'뒤를 한칸 뛰워야한다.

#s::
;윈도우키+S 하면 스크립트 가 진행을 시작합니다.
Run, http://dramatique.tistory.com ; 이 블로그를 열고
Sleep, 2000  ; 2초간  기다리고
Send,{F11}  ; 풀스크린으로 열고
; 풀스크린명령 .. 어떤 명령어를 자동으로 실행할때 윈도우 크기와 위치를 지정하는 방법과 풀스크린으로 좌표를 따는 방법이 있다.
Sleep, 1000 ; 1초 기다리고
Run, http://dramatique.tistory.com/1234  ; 다시 블로그를 열고
Sleep,5000  ; 홈피가 열리기 전에 다음 명령어를 만나면 안되기 때문에 홈피열리는 시간을 5초 줘 본다..
; 물론 홈피가 열렸나 안열였나 감시하고 열리면 다음 명령어를 진행하는 명령어도 있다.
MouseClick,Left.111,222   ; 임의의 장소를 클릭하고 싶은 좌표를 입력한다
Sleep,100 ; 대기시간 1000=1초
SoundBeep,1000,1000 ;1000 헬즈의 소리를 1초간 낸다.
Exit  ; 스크립트를 끝내고 아웃 합니다.



이런 스크립트를 텍스트 에디터로 복사하고 확장자 ahk로 저장하고 실행한다.
하단 스크 바에 H 가 표시되면 ,
윈도우키와 S(windowkey+S)크립트는 실행된다.

---------------------------------
만약 첫줄을
#s:: 는 윈도우키+S 인데 이것을  ^!T 이렇게 한다면 만약에 있을지도 모를 엉킴을 방지하게 될것입니다.
즉 CTR+ALT+T 까지 누르는 다른 프로그램은 없을 테니까요..

간단히 진행하는 경우에 편리하게 F1:: 정도 해도 되지만 중요한 프로그램을 실행시킬때는 Help와 겹치는 경우를 생각해 봐야할것입니다.


오토핫키 극초보예제
오토핫키 왕초보 (2)

오토핫키명령어 바로가기
오토핫키 실행문서 만들기


'소프트웨어 > 스크립트천국' 카테고리의 다른 글

세계적인 CMS 고찰  (0) 2012.07.26
복사금지 해제  (1) 2012.01.07
동영상 음악 자동실행  (1) 2011.10.03
핑-트레이스 툴  (0) 2011.06.03
동영상 자르기  (1) 2011.06.03
오토핫키 왕초보(3)  (2) 2011.01.29
오토핫키 왕초보 (2)  (4) 2010.12.31
유용한 금지태그 모음  (0) 2010.10.16
오토핫키 왕초보 첫걸음  (5) 2010.07.12
오토핫키 명령어  (4) 2010.07.07
최신 드라이버 탐지 소프트웨어  (1) 2010.06.19
Posted by 블로그에세이-BlogEssay Dramatique

댓글을 달아 주세요

  1. 2011.08.11 23:53  댓글주소  수정/삭제  댓글쓰기

    비밀댓글입니다

  2. Favicon of https://dramatique.tistory.com BlogIcon 블로그에세이-BlogEssay Dramatique 2011.08.12 08:58 신고  댓글주소  수정/삭제  댓글쓰기

    스크립트라이트로 열려는 홈피 열어 보시면 바로 예제가 그대로 실행됩니다



AutoHotkey Baby step (2)
직관적인 매크로 프로그램 입문

첫편에 말한 것 처럼 여기는 오토핫키 왕초보를 위한 이야기이기 때문에 무난히 사용하는분들은 보지 말기를 바랍니다.[웹게임은 매크로가 정복한다.]

오토핫키는 상업적인 프로그램이 아닙니다.
그래서 보기좋게 화장을 하지 않는 심플한 인터페이스로 필요한것만 나열합니다.
사용해 볼수록 맘에 드는 구성이라고 생각합니다.
그래서 첨엔 당황스럽기도 하지요.

첨에 소프트웨어를 인스톨하면 아래와같은 4개의 실행파일이 있는데 먼저 AutoHotkey.exe를 실행하면
사용자 삽입 이미지

아래 BOX안의 모습으로 뜰것입니다.
이렇게 뜨면 정상적으로 인스톨 된것이며 매크로 명령만 안다면 고급 매크로를 바로 짤수 있는 환경이 된것이며 파일은 AutoHotkey.ahk를 불러온것입니다.

실제로 아무것도 안불러오고 블랭크(빈 백지 화면이 나오면 차라리 덜 황당할지도 모름)파일이 더 낳을지도 모릅니다.

불러온 파일은 지우든지 놔두던지 하고 모든것을 지우고 Test.ahk 정도의 파일을 만들어 시험하는게 좋다고 생각합니다.

1.AutoHotke.exe
오토핫키

2.AutoScriptWriter (recorder)
3.AutoIt3 Window Spy
4.Convert .ahk to .exe
이 네가지의 실행파일 중에서 1번은 실행파일이며 매크로 스크립트를 만들고 실행하고 편집하는 핵심 파일이며 이것으로 모든 작업을 하게 됩니다.
2번은 매크로를 만들것을 미리 사용자가 시행해보면 시행한대로 매크로형태의 스크립트로 나영해 주며 그대로 복사해서 돌리도 돌아가는 말그대로 실행상태 녹화기와 같은것입니다.
3번은 내가 실행한 작업이 윈도상에서 어떤명령어를 택해서 실행되게 되는가를 명령어상으로 조합할수 있도록 나열해 줍니다.
4번은 완벽할 만큼 잘 짜여진 매크로가 탄생하면 오토핫키가 깔리지 않은 어떤 PC상에서도 바로 사용할수 있도록 실행파일로 만들어 줍니다.
  
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments.  They are not executed.

; This script has a special filename and path because it is automatically
; launched when you run the program directly.  Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it.  You can have as many .ahk
; files as you want, located in any folder.  You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.

; SAMPLE HOTKEYS: Below are two sample hotkeys.  The first is Win+Z and it
; launches a web site in the default browser.  The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one).  To
; try out these hotkeys, run AutoHotkey again, which will load this file.

#z::Run www.autohotkey.com

^!n::
IfWinExist Untitled - Notepad
    WinActivate
else
    Run Notepad
return


; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded.  So feel free to customize it to suit your needs.

; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks.  It also explains more about hotkeys.

박스안의 텍스트로 된 문서를 매크로 문서라 하며 이 매크로 문서는 확장자가 TXT 상태로 보관하여 언제나 수정 보완하며 보관용으로 하는게 좋을것이며,
매크로 동작을 바로 시킬때는 확장자 ahk로 저장하면 됩니다.

위의 박스 안의 많은 텍스트는 " ; " 를 전치한 문장은 주석문입니다.
매크로를 짜면서 자기가 짠것이지만 편리를 위해서 문장마다 꼼꼼하게 주석문을 붙이는 습관을 들이는게 좋습니다.
" ; "표시가 없는 문장은 매크로 문장입니다.
수많은 다양한 매크로 명령어를 준비하고 있으며 고급 유저는 함수를 만들수도 있지만 기본적으로 제공하는 매크로 명령어 만 으로도 부족함이 없는 매크로를 만들수 있을것입니다.

별거아닌 이야기이지만 모르는분이 있다면 도움되었으면 좋겠습니다.
다음에는 아래 명령어 리스트를 근거로 해서 실제 구성을 함께 해 볼것입니다.

영문해석은 천천이 사용례를 쓰면서 그때그때 하려고 합니다.
워낙 귀찮은 일이라서 ㅎㅎ
{ ... } 중괄호 한쌍으로 감싸는 형태 안에는 보통 functions, Else, Loop,등이 수용되며 별도 명령없이 문단의 차례가 되면 실행되고 조건부로 실행도중에 지정한 라인으로 튀어 나갈수 있다.  
AutoTrim 변수대입 형태 "Var1 = %Var2%" 같은 경우의 실행에서 대입하는 문법에서 공백이나 탭의 형태를 지정하여 지시할 수 있다.
BlockInput 비활성/활성을 결정한다.
주로 입력장치 마우스,키보드,등을 무호화 하는데 사용된다.
Break 반복명령을 종료하는데 주로 loop.같은 명령을 제어할 때는 루프 내에서만 유효하다.
Click 클릭은 클릭의 의미인데,숫자로 지정한 좌표를 클릭한 결과를 내거나 휠을 돌리는 결과를 내거나 등의 다양한 결과를 내는 명령이다.
ClipWait 여러 가지 데이터를 획득한후 윈도의 실제 크립보드에 입력이 완료될 때까지 기다린다.
Waits until the clipboard contains data.
Continue 반복명령 loop 를 수행할 때 다음명령어를 무시하고 처음 loop 로 돌아간다.
Control Makes a variety of changes to a control.
여러 가지 명령어임
ControlClick 실행중에 컨트롤에 마우스 이벤트나 휠이벤트를 보낸다.
ControlFocus 입력포커스를 윈도가 지정한 콘트롤로 전환한다.  
ControlGet 컨트롤 정보를 획득한다.
ControlGetFocus 윈도 컨트롤에서 사용되는 포커스를 찾는다
ControlGetPos 컨트롤 정보 위치,크기등을 찾는다.
ControlGetText 컨트롤에서 텍스트를 획득한다.
ControlMove 컨트롤 크기를 변경한다l.
ControlSend / ControlSendRaw Sends simulated keystrokes to a window or control.
ControlSetText Changes the text of a control.
CoordMode Sets coordinate mode for various commands to be relative to either the active window or the screen.
Critical Prevents the current thread from being interrupted by other threads.
DetectHiddenText Determines whether invisible text in a window is "seen" for the purpose of finding the window. This affects commands such as IfWinExist and WinActivate.
DetectHiddenWindows Determines whether invisible windows are "seen" by the script.
DllCall() Calls a function inside a DLL, such as a standard Windows API function.
Drive Ejects/retracts the tray in a CD or DVD drive, or sets a drive's volume label.
DriveGet Retrieves various types of information about the computer's drive(s).
DriveSpaceFree Retrieves the free disk space of a drive, in Megabytes.
Edit Opens the current script for editing in the associated editor.
Else Specifies 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).
EnvAdd Sets 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
EnvDiv Sets a variable to itself divided by the given value. Synonymous with: var /= value
EnvGet Retrieves an environment variable.
EnvMult Sets a variable to itself times the given value. Synonymous with: var *= value
EnvSet Writes a value to a variable contained in the environment.
EnvSub Sets a variable to itself minus the given value (can also compare date-time values). Synonymous with: var -= value
EnvUpdate Notifies the OS and all running applications that environment variable(s) have changed.
Exit Exits the current thread or (if the script is not persistent and contains no hotkeys) the entire script.
ExitApp Terminates the script unconditionally.
FileAppend Writes text to the end of a file (first creating the file, if necessary).
FileCopy Copies one or more files.
FileCopyDir Copies a folder along with all its sub-folders and files (similar to xcopy).
FileCreateDir Creates a folder.
FileCreateShortcut Creates a shortcut (.lnk) file.
FileDelete Deletes one or more files.
FileInstall Includes the specified file inside the compiled version of the script.
FileGetAttrib Reports whether a file or folder is read-only, hidden, etc.
FileGetShortcut Retrieves information about a shortcut (.lnk) file, such as its target file.
FileGetSize Retrieves the size of a file.
FileGetTime Retrieves the datetime stamp of a file or folder.
FileGetVersion Retrieves the version of a file.
FileMove Moves or renames one or more files.
FileMoveDir Moves a folder along with all its sub-folders and files. It can also rename a folder.
FileRead Reads a file's contents into a variable.
FileReadLine Reads the specified line from a file and stores the text in a variable.
FileRecycle Sends a file or directory to the recycle bin, if possible.
FileRecycleEmpty Empties the recycle bin.
FileRemoveDir Deletes a folder.
FileSelectFile Displays 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.

FileSetAttrib Changes the attributes of one or more files or folders. Wildcards are supported.
FileSetTime Changes the datetime stamp of one or more files or folders. Wildcards are supported.
FormatTime Transforms a YYYYMMDDHH24MISS timestamp into the specified date/time format.
GetKeyState Checks if a keyboard key or mouse/joystick button is down or up. Also retrieves joystick status.
Gosub Jumps to the specified label and continues execution until Return is encountered.
Goto Jumps to the specified label and continues execution.
GroupActivate Activates the next window in a window group that was defined with GroupAdd.
GroupAdd Adds a window specification to a window group, creating the group if necessary.
GroupClose Closes 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.
GroupDeactivate Similar to GroupActivate except activates the next window not in the group.
GUI Creates and manages windows and controls. Such windows can be used as data entry forms or custom user interfaces.
GuiControl Makes a variety of changes to a control in a GUI window.
GuiControlGet Retrieves various types of information about a control in a GUI window.
HideAutoItWin, On|Off [Obsolete -- the following is equivalent: Menu, tray, NoIcon|Icon]
Hotkey Creates, modifies, enables, or disables a hotkey while the script is running.
if Specifies 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] between Checks whether a variable's contents are numerically or alphabetically between two values (inclusive).
If var [not] in/contains MatchList Checks 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.
ImageSearch Searches a region of the screen for an image.
IniDelete Deletes a value from a standard format .ini file.
IniRead Reads a value from a standard format .ini file.
IniWrite Writes a value to a standard format .ini file.
Input Waits for the user to type a string (not supported on Windows 9x: it does nothing).
InputBox Displays an input box to ask the user to enter a string.
KeyHistory Displays script info and a history of the most recent keystrokes and mouse clicks.
KeyWait Waits 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]
ListHotkeys Displays 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.
ListLines Displays the script lines most recently executed.
ListVars Displays 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.
Menu Creates, 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.
MouseClick Clicks or holds down a mouse button, or turns the mouse wheel. NOTE: The Click command is generally more flexible and easier to use.
MouseClickDrag Clicks and holds the specified mouse button, moves the mouse to the destination coordinates, then releases the button.
MouseGetPos Retrieves the current position of the mouse cursor, and optionally which window and control it is hovering over.
MouseMove Moves the mouse cursor.
MsgBox Displays the specified text in a small window containing one or more buttons (such as Yes and No).
OnExit Specifies a subroutine to run automatically when the script exits.
OnMessage() Specifies a function to call automatically when the script receives the specified message.
OutputDebug Sends a string to the debugger (if any) for display.
Pause Pauses the script's current thread.
PixelGetColor Retrieves the color of the pixel at the specified x,y coordinates.
PixelSearch Searches a region of the screen for a pixel of the specified color.
PostMessage Places a message in the message queue of a window or control.
Process Performs one of the following operations on a process: checks if it exists; changes its priority; closes it; waits for it to close.
Progress Creates or updates a window containing a progress bar.
Random Generates 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.
RegDelete Deletes a subkey or value from the registry.
RegRead Reads a value from the registry.
RegWrite Writes a value to the registry.
RegisterCallback() Creates a machine-code address that when called, redirects the call to a function in the script.
Reload Replaces the currently running instance of the script with a new one.
Repeat…EndRepeat
[Obsolete -- use Loop for greater flexibility]
Return Returns 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]
Run Runs an external program.
RunAs Specifies a set of user credentials to use for all subsequent uses of Run and RunWait. Requires Windows 2000/XP or later.
RunWait Runs an external program and waits until it finishes.
Send / SendRaw /
SendInput /SendPlay
Sends simulated keystrokes and mouse clicks to the active window.
SendMessage Sends a message to a window or control and waits for acknowledgement.
SendMode Makes Send synonymous with SendInput or SendPlay rather than the default (SendEvent). Also makes Click and MouseMove/Click/Drag use the specified method.
SetBatchLines Determines how fast a script will run (affects CPU utilization).
SetCapslockState Sets the state of the Capslock key. Can also force the key to stay on or off.
SetControlDelay Sets the delay that will occur after each control-modifying command.
SetDefaultMouseSpeed Sets 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.
SetFormat Sets the format of integers and floating point numbers generated by math operations.
SetKeyDelay Sets the delay that will occur after each keystroke sent by Send or ControlSend.
SetMouseDelay Sets the delay that will occur after each mouse movement or click.
SetNumlockState Sets the state of the Numlock key. Can also force the key to stay on or off.
SetScrollLockState Sets 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.
SetTimer Causes a subroutine to be launched automatically and repeatedly at a specified time interval.
SetTitleMatchMode Sets the matching behavior of the WinTitle parameter in commands such as WinWait.
SetWinDelay Sets the delay that will occur after each windowing command, such as WinActivate.
SetWorkingDir Changes the script's current working directory.
Shutdown Shuts down, restarts, or logs off the system.
Sleep Waits the specified amount of time before continuing.
Sort Arranges a variable's contents in alphabetical, numerical, or random order (optionally removing duplicates).
SoundBeep Emits a tone from the PC speaker.
SoundGet Retrieves various settings from a sound device (master mute, master volume, etc.)
SoundGetWaveVolume Retrieves the wave output volume from a sound device.
SoundPlay Plays a sound, video, or other supported file type.
SoundSet Changes various settings of a sound device (master mute, master volume, etc.)
SoundSetWaveVolume Changes the wave output volume for a sound device.
SplashImage Creates or updates a window containing a JPG, GIF, or BMP image.
SplashTextOn Creates a customizable text popup window.
SplashTextOff Closes the above window.
SplitPath Separates a file name or URL into its name, directory, extension, and drive.
StatusBarGetText Retrieves the text from a standard status bar control.
StatusBarWait Waits until a window's status bar contains the specified string.
StringCaseSense Determines whether string comparisons are case sensitive (default is "not case sensitive").
StringGetPos / InStr() Retrieves the position of the specified substring within a string.
StringLeft Retrieves 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.
StringLower Converts a string to lowercase.
StringMid / SubStr() Retrieves one or more characters from the specified position in a string.
StringReplace Replaces the specified substring with a new string.
StringRight Retrieves a number of characters from the right-hand side of a string.
StringSplit Separates a string into an array of substrings using the specified delimiters.
StringTrimLeft Removes a number of characters from the left-hand side of a string.
StringTrimRight Removes a number of characters from the right-hand side of a string.
StringUpper Converts a string to uppercase.
Suspend Disables or enables all or selected hotkeys and hotstrings.
SysGet Retrieves screen resolution, multi-monitor info, dimensions of system objects, and other system properties.
Thread Sets the priority or interruptibility of threads. It can also temporarily disable all timers.
ToolTip Creates an always-on-top window anywhere on the screen.
Transform Performs miscellaneous math functions, bitwise operations, and tasks such as ASCII/Unicode conversion.
TrayTip Creates a balloon message window near the tray icon. Requires Windows 2000/XP or later.
UrlDownloadToFile Downloads a file from the Internet.
Var = value Assigns the specified value to a variable.
Var := expression Evaluates 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-loop Performs a series of commands repeatedly until the specified expression evaluates to false.
WinActivate Activates the specified window (makes it foremost).
WinActivateBottom Same as WinActivate except that it activates the bottommost (least recently active) matching window rather than the topmost.
WinClose Closes the specified window.
WinGetActiveStats Combines the functions of WinGetActiveTitle and WinGetPos into one command.
WinGetActiveTitle Retrieves the title of the active window.
WinGetClass Retrieves the specified window's class name.
WinGet Retrieves 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.
WinGetPos Retrieves the position and size of the specified window.
WinGetText Retrieves the text from the specified window.
WinGetTitle Retrieves the title of the specified window.
WinHide Hides the specified window.
WinKill Forces the specified window to close.
WinMaximize Enlarges the specified window to its maximum size.
WinMenuSelectItem Invokes a menu item from the menu bar of the specified window.
WinMinimize Collapses the specified window into a button on the task bar.
WinMinimizeAll Minimizes all windows.
WinMinimizeAllUndo Reverses the effect of a previous WinMinimizeAll.
WinMove Changes the position and/or size of the specified window.
WinRestore Unminimizes or unmaximizes the specified window if it is minimized or maximized.
WinSet Makes a variety of changes to the specified window, such as "always on top" and transparency.
WinSetTitle Changes the title of the specified window.
WinShow Unhides the specified window.
WinWait Waits until the specified window exists.
WinWaitActive Waits until the specified window is active.
WinWaitClose Waits until the specified window does not exist.
WinWaitNotActive Waits until the specified window is not active.
#AllowSameLineComments Only for AutoIt v2 (.aut) scripts: Allows a comment to appear on the same line as a command.
#ClipboardTimeout Changes how long the script keeps trying to access the clipboard when the first attempt fails.
#CommentFlag Changes the script's comment symbol from semicolon to some other string.
#ErrorStdOut Sends any syntax error that prevents a script from launching to stdout rather than displaying a dialog.
#EscapeChar Changes the script's escape character (for example: backslash vs. accent).
#HotkeyInterval Along with #MaxHotkeysPerInterval, specifies the rate of hotkey activations beyond which a warning dialog will be displayed.
#HotkeyModifierTimeout Affects the behavior of hotkey modifiers: CTRL, ALT, WIN, and SHIFT.
#Hotstring Changes hotstring options or ending characters.
#IfWinActive / #IfWinExist Creates 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.
#Include Causes the script to behave as though the specified file's contents are present at this exact position.
#InstallKeybdHook Forces the unconditional installation of the keyboard hook.
#InstallMouseHook Forces the unconditional installation of the mouse hook.
#KeyHistory Sets the maximum number of keyboard and mouse events displayed by the KeyHistory window. You can set it to 0 to disable key history.
#MaxHotkeysPerInterval Along with #HotkeyInterval, specifies the rate of hotkey activations beyond which a warning dialog will be displayed.
#MaxMem Sets the maximum capacity of each variable to the specified number of megabytes.
#MaxThreads Sets the maximum number of simultaneous threads.
#MaxThreadsBuffer Causes some or all hotkeys to buffer rather than ignore keypresses when their #MaxThreadsPerHotkey limit has been reached.
#MaxThreadsPerHotkey Sets the maximum number of simultaneous threads per hotkey or hotstring.
#NoEnv Avoids checking empty variables to see if they are environment variables (recommended for all new scripts).
#NoTrayIcon Disables the showing of a tray icon.
#Persistent Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered).
#SingleInstance Determines whether a script is allowed to run again when it is already running.
#UseHook Forces 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.

오토핫키 그초보예제
오토핫키 왕초보 (2)

오토핫키명령어 바로가기
오토핫키 실행문서 만들기

     

'소프트웨어 > 스크립트천국' 카테고리의 다른 글

복사금지 해제  (1) 2012.01.07
동영상 음악 자동실행  (1) 2011.10.03
핑-트레이스 툴  (0) 2011.06.03
동영상 자르기  (1) 2011.06.03
오토핫키 왕초보(3)  (2) 2011.01.29
오토핫키 왕초보 (2)  (4) 2010.12.31
유용한 금지태그 모음  (0) 2010.10.16
오토핫키 왕초보 첫걸음  (5) 2010.07.12
오토핫키 명령어  (4) 2010.07.07
최신 드라이버 탐지 소프트웨어  (1) 2010.06.19
자막제작 편집 프로그램  (0) 2010.06.19
Posted by 블로그에세이-BlogEssay Dramatique

댓글을 달아 주세요

  1. Favicon of http://dragonphoto.tistory.com BlogIcon 드래곤 2010.12.31 20:52 신고  댓글주소  수정/삭제  댓글쓰기

    행복한 새해되세요^^

  2. pezx2002 2011.02.01 15:50 신고  댓글주소  수정/삭제  댓글쓰기

    blockinput 이란 명령어를 스크립트에 적용하고싶은데
    적용할려면 어떻게해야하죠

  3. Favicon of https://dramatique.tistory.com BlogIcon 블로그에세이-BlogEssay Dramatique 2011.02.10 08:47 신고  댓글주소  수정/삭제  댓글쓰기

    명령어 리스트를 클릭하면 샘플과 사용법을 바로 제시하고 있습니다.


제발 불펌좀 그만 하세요.불펌 한다고 실력이 느나요?

오토핫키 극초보 예제(1)

AutoHotkey Baby step to record ON SCREEN MOUSE POSITION .........
직관적인 매크로 프로그램 입문


오토핫키는 근본적으로 반복되는 수작업을 편하게 컴퓨터에게 시키려는 목적에서


출발한 오토마우스의 발전된 모습인데,
지금은 매크로 분야에서 정상을 달리는 무료 소프트웨어이다.

모니터 스크린상에서 그냥 한번 실행한 과정을 다음부터는 그대로 따라하게 만든 기능으로 부터 시작해서 지금은 스크립트언어로 까지 발전되어 그 기능은 자동화를 넘어서 실력에 따라서는 지능형 매크로까지 스크립팅할수 있다.

그러나 스크립트나 랭귀지에 개념이 아예없는 일반인에게는 이 소프트웨어를 깔고난뒤에 보여주는 황당한  메모장을 바라다 보다가 대부분은 그만 두게 된다.
무슨 이런 프로그램이 다있어 ? 하는 경우가 많을것이다.

여기서 극초보 유저라도 바로 쓸수 있는 방법 하나를 예시 하려고 한다.
일단 autohotkey 를 깐다.
http://www.autohotkey.com/ 에서 

AutoHotkey Installer (1.95 MB): 요걸 다운받고 인스톨한다.
이런종류의 프로그램은 아무데서나 다운받지 마세요.
!! 아 무서운 매크로 트로잔 놈 !!

다음 프로그램 깔린 폴더나 프로그램에서 Autoscript Writer 를 찾아 실행한다.

오토핫키 초보


Autoscript Writer 를 실행하면 위처럼 된다.
물론 첨에는 윈도우 안에 아무것도 없는 백지이다.

자 이제 위의 빨간색 버튼 A Record 를 클릭한다.
그리고 스크린상에서 클릭할 윈도우창이나 IE 창을 최대로 한다.
최대로 해야 위치가 움직이지 안을 테니까(최대로 안해도 안움직이게 되지만 극초보에게만 귓속말).
 
이제 노가다하는 반복작업이나 로보트 처럼 돌리는 프로그램을 쭉  클릭한다.

사용자 삽입 이미지

적당히 클릭한후에 모니터 왼쪽 상부에있는 레코딩 표시기를 스톱시키면
지금까지 클릭한 좌표와 함께 클릭과 클릭 사이의 지연시간이 표시되는데 에디터로
MouseClick,Left.111,222
Sleep,100
이런 문자열만 카피해서 본인이 주로 쓰는 텍스트에디터에 붙여넣고 확장자 ahk로 저정한다.

시작하는분을 위한 매크로명령없는
예제 :

;극초보 시험 매크로
;출발
;핫키 아직모른다.
Send,{F11} ;풀스크린명령
Run,http://dramatique.tistory.com/
Sleep,5000 ;홈피열리는 시간이 5초면 될려나..
MouseClick,Left.111,222 ;마우스클릭좌표 --가짜
Sleep,100 ;대기시간 1000=1초
SoundBeep,1000,1000 ;1000 헬즈의 소리를 1초간 낸다.
Exit ;끝내고 아웃




위의 예제속의 좌표는 임이이며 본인이 필요로 하는 좌표를 넣으면 됩니다.
좌표따는 도구는 Autoscript Writer 이며 차츰 개념이 잡히면 이 유틸리티도 쓸만하다는걸 알게 되지요.


위의 청색부분을 에디터로 저장할때 적당한 이름으로 .ahk로 저장하고
그 파일을 더블클릭하면 조금전에 마으스로 했던 과정을 재현할것입니다.

이게 되면 오토마우스로의 개념이 잡히는 것이라고 생각합니다.

영리하신 유저분은 웃긴다고 하시겠지만 이런게 필요한분이 있을것으로 압니다.

극초보를 위한 오토핫키 베이비 스텝.



오토핫키 그초보예제

오토핫키 왕초보 (2)

오토핫키명령어 바로가기
오토핫키 실행문서 만들기



Posted by 블로그에세이-BlogEssay Dramatique

댓글을 달아 주세요

  1. 2011.01.29 23:25 신고  댓글주소  수정/삭제  댓글쓰기

    님 그거암? ㅋㅋ

  2. 2011.01.29 23:25 신고  댓글주소  수정/삭제  댓글쓰기

    님 짱임 ㅇ.ㅇ ㅋ

    • Favicon of https://dramatique.tistory.com BlogIcon 블로그에세이-BlogEssay Dramatique 2012.02.15 21:55 신고  댓글주소  수정/삭제

      AutoHotkey Baby step to record ON SCREEN MOUSE POSITION .........
      직관적인 매크로 프로그램 입문


      오토핫키는 근본적으로 반복되는 수작업을 편하게 컴퓨터에게 시키려는 목적에서

      출발한 오토마우스의 발전된 모습인데,
      지금은 매크로 분야에서 정상을 달리는 무료 소프트웨어이다.

  3. Favicon of https://dramatique.tistory.com BlogIcon 블로그에세이-BlogEssay Dramatique 2012.02.15 21:54 신고  댓글주소  수정/삭제  댓글쓰기

    AutoHotkey Baby step to record ON SCREEN MOUSE POSITION .........
    직관적인 매크로 프로그램 입문


    오토핫키는 근본적으로 반복되는 수작업을 편하게 컴퓨터에게 시키려는 목적에서

    출발한 오토마우스의 발전된 모습인데,
    지금은 매크로 분야에서 정상을 달리는 무료 소프트웨어이다.

  4. Favicon of https://dramatique.tistory.com BlogIcon 블로그에세이-BlogEssay Dramatique 2012.02.15 21:54 신고  댓글주소  수정/삭제  댓글쓰기

    AutoHotkey Baby step to record ON SCREEN MOUSE POSITION .........
    직관적인 매크로 프로그램 입문


    오토핫키는 근본적으로 반복되는 수작업을 편하게 컴퓨터에게 시키려는 목적에서

    출발한 오토마우스의 발전된 모습인데,
    지금은 매크로 분야에서 정상을 달리는 무료 소프트웨어이다.




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

매크로프로그램


오토핫키는 매크로 영역을 넘어서 스크립트언어라고 말할정도로 세계적인 호응을 얻고 있다.
오토잇과 더불어 매크로 분야 뛰어난 편리성을 자랑하고있는 가운데 최근들어 버전업 되면서 오토핫키가 단연 우수하다는 평을 받고 있다.

사실 유료버전보다 무료버전이 좋은것이 많지만 매크로 소프트웨어도 인터페이스만 요란한것과는 대조적으로 오토핫키는 어쩌면 허접하게 보이는 인터페이스와는 다르게 그 내용은 우수한것이 사실이다.
아래에 오토핫키를 더욱 빛내주는 강력한 커맨드리스트를 올려봅니다.
 
 
Command Description
{ ... } A pair of braces denotes a block. Blocks are typically used with functions, Else, Loop, While-loop, and IF-commands.
AutoTrim Determines whether "Var1 = %Var2%" statements omit spaces and tabs from the beginning and end of Var2.
BlockInput Disables or enables the user's ability to interact with the computer via keyboard and mouse.
Break Exits (terminates) a loop. Valid inside any kind of loop.
Click Clicks a mouse button at the specified coordinates. It can also hold down a mouse button, turn the mouse wheel, or move the mouse.
ClipWait Waits until the clipboard contains data.
Continue Skips the rest of the current loop iteration and begins a new one. Valid inside any kind of loop.
Control Makes a variety of changes to a control.
ControlClick Sends a mouse button or mouse wheel event to a control.
ControlFocus Sets input focus to a given control on a window.
ControlGet Retrieves various types of information about a control.
ControlGetFocus Retrieves which control of the target window has input focus, if any.
ControlGetPos Retrieves the position and size of a control.
ControlGetText Retrieves text from a control.
ControlMove Moves or resizes a control.
ControlSend / ControlSendRaw Sends simulated keystrokes to a window or control.
ControlSetText Changes the text of a control.
CoordMode Sets coordinate mode for various commands to be relative to either the active window or the screen.
Critical Prevents the current thread from being interrupted by other threads.
DetectHiddenText Determines whether invisible text in a window is "seen" for the purpose of finding the window. This affects commands such as IfWinExist and WinActivate.
DetectHiddenWindows Determines whether invisible windows are "seen" by the script.
DllCall() Calls a function inside a DLL, such as a standard Windows API function.
Drive Ejects/retracts the tray in a CD or DVD drive, or sets a drive's volume label.
DriveGet Retrieves various types of information about the computer's drive(s).
DriveSpaceFree Retrieves the free disk space of a drive, in Megabytes.
Edit Opens the current script for editing in the associated editor.
Else Specifies 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).
EnvAdd Sets 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
EnvDiv Sets a variable to itself divided by the given value. Synonymous with: var /= value
EnvGet Retrieves an environment variable.
EnvMult Sets a variable to itself times the given value. Synonymous with: var *= value
EnvSet Writes a value to a variable contained in the environment.
EnvSub Sets a variable to itself minus the given value (can also compare date-time values). Synonymous with: var -= value
EnvUpdate Notifies the OS and all running applications that environment variable(s) have changed.
Exit Exits the current thread or (if the script is not persistent and contains no hotkeys) the entire script.
ExitApp Terminates the script unconditionally.
FileAppend Writes text to the end of a file (first creating the file, if necessary).
FileCopy Copies one or more files.
FileCopyDir Copies a folder along with all its sub-folders and files (similar to xcopy).
FileCreateDir Creates a folder.
FileCreateShortcut Creates a shortcut (.lnk) file.
FileDelete Deletes one or more files.
FileInstall Includes the specified file inside the compiled version of the script.
FileGetAttrib Reports whether a file or folder is read-only, hidden, etc.
FileGetShortcut Retrieves information about a shortcut (.lnk) file, such as its target file.
FileGetSize Retrieves the size of a file.
FileGetTime Retrieves the datetime stamp of a file or folder.
FileGetVersion Retrieves the version of a file.
FileMove Moves or renames one or more files.
FileMoveDir Moves a folder along with all its sub-folders and files. It can also rename a folder.
FileRead Reads a file's contents into a variable.
FileReadLine Reads the specified line from a file and stores the text in a variable.
FileRecycle Sends a file or directory to the recycle bin, if possible.
FileRecycleEmpty Empties the recycle bin.
FileRemoveDir Deletes a folder.
FileSelectFile Displays 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.

FileSetAttrib Changes the attributes of one or more files or folders. Wildcards are supported.
FileSetTime Changes the datetime stamp of one or more files or folders. Wildcards are supported.
FormatTime Transforms a YYYYMMDDHH24MISS timestamp into the specified date/time format.
GetKeyState Checks if a keyboard key or mouse/joystick button is down or up. Also retrieves joystick status.
Gosub Jumps to the specified label and continues execution until Return is encountered.
Goto Jumps to the specified label and continues execution.
GroupActivate Activates the next window in a window group that was defined with GroupAdd.
GroupAdd Adds a window specification to a window group, creating the group if necessary.
GroupClose Closes 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.
GroupDeactivate Similar to GroupActivate except activates the next window not in the group.
GUI Creates and manages windows and controls. Such windows can be used as data entry forms or custom user interfaces.
GuiControl Makes a variety of changes to a control in a GUI window.
GuiControlGet Retrieves various types of information about a control in a GUI window.
HideAutoItWin, On|Off [Obsolete -- the following is equivalent: Menu, tray, NoIcon|Icon]
Hotkey Creates, modifies, enables, or disables a hotkey while the script is running.
if Specifies 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] between Checks whether a variable's contents are numerically or alphabetically between two values (inclusive).
If var [not] in/contains MatchList Checks 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.
ImageSearch Searches a region of the screen for an image.
IniDelete Deletes a value from a standard format .ini file.
IniRead Reads a value from a standard format .ini file.
IniWrite Writes a value to a standard format .ini file.
Input Waits for the user to type a string (not supported on Windows 9x: it does nothing).
InputBox Displays an input box to ask the user to enter a string.
KeyHistory Displays script info and a history of the most recent keystrokes and mouse clicks.
KeyWait Waits 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]
ListHotkeys Displays 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.
ListLines Displays the script lines most recently executed.
ListVars Displays 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.
Menu Creates, 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.
MouseClick Clicks or holds down a mouse button, or turns the mouse wheel. NOTE: The Click command is generally more flexible and easier to use.
MouseClickDrag Clicks and holds the specified mouse button, moves the mouse to the destination coordinates, then releases the button.
MouseGetPos Retrieves the current position of the mouse cursor, and optionally which window and control it is hovering over.
MouseMove Moves the mouse cursor.
MsgBox Displays the specified text in a small window containing one or more buttons (such as Yes and No).
OnExit Specifies a subroutine to run automatically when the script exits.
OnMessage() Specifies a function to call automatically when the script receives the specified message.
OutputDebug Sends a string to the debugger (if any) for display.
Pause Pauses the script's current thread.
PixelGetColor Retrieves the color of the pixel at the specified x,y coordinates.
PixelSearch Searches a region of the screen for a pixel of the specified color.
PostMessage Places a message in the message queue of a window or control.
Process Performs one of the following operations on a process: checks if it exists; changes its priority; closes it; waits for it to close.
Progress Creates or updates a window containing a progress bar.
Random Generates 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.
RegDelete Deletes a subkey or value from the registry.
RegRead Reads a value from the registry.
RegWrite Writes a value to the registry.
RegisterCallback() Creates a machine-code address that when called, redirects the call to a function in the script.
Reload Replaces the currently running instance of the script with a new one.
Repeat…EndRepeat
[Obsolete -- use Loop for greater flexibility]
Return Returns 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]
Run Runs an external program.
RunAs Specifies a set of user credentials to use for all subsequent uses of Run and RunWait. Requires Windows 2000/XP or later.
RunWait Runs an external program and waits until it finishes.
Send / SendRaw / SendInput / SendPlay Sends simulated keystrokes and mouse clicks to the active window.
SendMessage Sends a message to a window or control and waits for acknowledgement.
SendMode Makes Send synonymous with SendInput or SendPlay rather than the default (SendEvent). Also makes Click and MouseMove/Click/Drag use the specified method.
SetBatchLines Determines how fast a script will run (affects CPU utilization).
SetCapslockState Sets the state of the Capslock key. Can also force the key to stay on or off.
SetControlDelay Sets the delay that will occur after each control-modifying command.
SetDefaultMouseSpeed Sets 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.
SetFormat Sets the format of integers and floating point numbers generated by math operations.
SetKeyDelay Sets the delay that will occur after each keystroke sent by Send or ControlSend.
SetMouseDelay Sets the delay that will occur after each mouse movement or click.
SetNumlockState Sets the state of the Numlock key. Can also force the key to stay on or off.
SetScrollLockState Sets 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.
SetTimer Causes a subroutine to be launched automatically and repeatedly at a specified time interval.
SetTitleMatchMode Sets the matching behavior of the WinTitle parameter in commands such as WinWait.
SetWinDelay Sets the delay that will occur after each windowing command, such as WinActivate.
SetWorkingDir Changes the script's current working directory.
Shutdown Shuts down, restarts, or logs off the system.
Sleep Waits the specified amount of time before continuing.
Sort Arranges a variable's contents in alphabetical, numerical, or random order (optionally removing duplicates).
SoundBeep Emits a tone from the PC speaker.
SoundGet Retrieves various settings from a sound device (master mute, master volume, etc.)
SoundGetWaveVolume Retrieves the wave output volume from a sound device.
SoundPlay Plays a sound, video, or other supported file type.
SoundSet Changes various settings of a sound device (master mute, master volume, etc.)
SoundSetWaveVolume Changes the wave output volume for a sound device.
SplashImage Creates or updates a window containing a JPG, GIF, or BMP image.
SplashTextOn Creates a customizable text popup window.
SplashTextOff Closes the above window.
SplitPath Separates a file name or URL into its name, directory, extension, and drive.
StatusBarGetText Retrieves the text from a standard status bar control.
StatusBarWait Waits until a window's status bar contains the specified string.
StringCaseSense Determines whether string comparisons are case sensitive (default is "not case sensitive").
StringGetPos / InStr() Retrieves the position of the specified substring within a string.
StringLeft Retrieves 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.
StringLower Converts a string to lowercase.
StringMid / SubStr() Retrieves one or more characters from the specified position in a string.
StringReplace Replaces the specified substring with a new string.
StringRight Retrieves a number of characters from the right-hand side of a string.
StringSplit Separates a string into an array of substrings using the specified delimiters.
StringTrimLeft Removes a number of characters from the left-hand side of a string.
StringTrimRight Removes a number of characters from the right-hand side of a string.
StringUpper Converts a string to uppercase.
Suspend Disables or enables all or selected hotkeys and hotstrings.
SysGet Retrieves screen resolution, multi-monitor info, dimensions of system objects, and other system properties.
Thread Sets the priority or interruptibility of threads. It can also temporarily disable all timers.
ToolTip Creates an always-on-top window anywhere on the screen.
Transform Performs miscellaneous math functions, bitwise operations, and tasks such as ASCII/Unicode conversion.
TrayTip Creates a balloon message window near the tray icon. Requires Windows 2000/XP or later.
UrlDownloadToFile Downloads a file from the Internet.
Var = value Assigns the specified value to a variable.
Var := expression Evaluates 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-loop Performs a series of commands repeatedly until the specified expression evaluates to false.
WinActivate Activates the specified window (makes it foremost).
WinActivateBottom Same as WinActivate except that it activates the bottommost (least recently active) matching window rather than the topmost.
WinClose Closes the specified window.
WinGetActiveStats Combines the functions of WinGetActiveTitle and WinGetPos into one command.
WinGetActiveTitle Retrieves the title of the active window.
WinGetClass Retrieves the specified window's class name.
WinGet Retrieves 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.
WinGetPos Retrieves the position and size of the specified window.
WinGetText Retrieves the text from the specified window.
WinGetTitle Retrieves the title of the specified window.
WinHide Hides the specified window.
WinKill Forces the specified window to close.
WinMaximize Enlarges the specified window to its maximum size.
WinMenuSelectItem Invokes a menu item from the menu bar of the specified window.
WinMinimize Collapses the specified window into a button on the task bar.
WinMinimizeAll Minimizes all windows.
WinMinimizeAllUndo Reverses the effect of a previous WinMinimizeAll.
WinMove Changes the position and/or size of the specified window.
WinRestore Unminimizes or unmaximizes the specified window if it is minimized or maximized.
WinSet Makes a variety of changes to the specified window, such as "always on top" and transparency.
WinSetTitle Changes the title of the specified window.
WinShow Unhides the specified window.
WinWait Waits until the specified window exists.
WinWaitActive Waits until the specified window is active.
WinWaitClose Waits until the specified window does not exist.
WinWaitNotActive Waits until the specified window is not active.
#AllowSameLineComments Only for AutoIt v2 (.aut) scripts: Allows a comment to appear on the same line as a command.
#ClipboardTimeout Changes how long the script keeps trying to access the clipboard when the first attempt fails.
#CommentFlag Changes the script's comment symbol from semicolon to some other string.
#ErrorStdOut Sends any syntax error that prevents a script from launching to stdout rather than displaying a dialog.
#EscapeChar Changes the script's escape character (for example: backslash vs. accent).
#HotkeyInterval Along with #MaxHotkeysPerInterval, specifies the rate of hotkey activations beyond which a warning dialog will be displayed.
#HotkeyModifierTimeout Affects the behavior of hotkey modifiers: CTRL, ALT, WIN, and SHIFT.
#Hotstring Changes hotstring options or ending characters.
#IfWinActive / #IfWinExist Creates 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.
#Include Causes the script to behave as though the specified file's contents are present at this exact position.
#InstallKeybdHook Forces the unconditional installation of the keyboard hook.
#InstallMouseHook Forces the unconditional installation of the mouse hook.
#KeyHistory Sets the maximum number of keyboard and mouse events displayed by the KeyHistory window. You can set it to 0 to disable key history.
#MaxHotkeysPerInterval Along with #HotkeyInterval, specifies the rate of hotkey activations beyond which a warning dialog will be displayed.
#MaxMem Sets the maximum capacity of each variable to the specified number of megabytes.
#MaxThreads Sets the maximum number of simultaneous threads.
#MaxThreadsBuffer Causes some or all hotkeys to buffer rather than ignore keypresses when their #MaxThreadsPerHotkey limit has been reached.
#MaxThreadsPerHotkey Sets the maximum number of simultaneous threads per hotkey or hotstring.
#NoEnv Avoids checking empty variables to see if they are environment variables (recommended for all new scripts).
#NoTrayIcon Disables the showing of a tray icon.
#Persistent Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered).
#SingleInstance Determines whether a script is allowed to run again when it is already running.
#UseHook Forces 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.



오토핫키 그초보예제

오토핫키 왕초보 (2)

오토핫키명령어 바로가기
오토핫키 실행문서 만들기

.
.
Posted by 블로그에세이-BlogEssay Dramatique

댓글을 달아 주세요

  1. ㅇㅇ 2010.07.23 11:08 신고  댓글주소  수정/삭제  댓글쓰기

    해석좀

  2. 쓰레기오토핫키 2011.07.07 13:43 신고  댓글주소  수정/삭제  댓글쓰기

    어렵기만 하고 제대로 작동도 안되는 최악의 쓰레기 프로그램....

    • Favicon of https://dramatique.tistory.com BlogIcon 블로그에세이-BlogEssay Dramatique 2011.07.07 14:56 신고  댓글주소  수정/삭제

      사람마다 다르겠지만 게임매크로를 구성해 봤을때 가장 호환성이 좋았으며 특히 실행파일 하나로 아무데서나 된다는게 장점이었고 잘못작동한적은 없었습니다. 추천 매크로 중에서 최고로 나오는 이유이라고 생각합니다.그냥 메모장으로 명령만 나영하면 되는 제일 쉬운 프로그램이라고 생각합니다.




컴퓨터라는 기계를 사용하면서 기계 때문에 귀찮아 저서는 안된다.


매크로 프로그램은 귀찮은 반복작업을 순서대로 한번 입력해서 수없이 계속해서 시킬수 있는 프로그램을 말합니다.
소개하는 프로그램은 사용에 아무 제한이 없는 Freeware 즉 무료 프로그램입니다.

마우스나 키보드를 사용하는 대로 움직임 그 자체를 매크로로 저장하여 핫키로 지정하거나 실행파일화 하여 반복 사용 할 수 있게 하는 유용한 프로그램입니다.
사용자의 아이디어로 응용하기에 따라서 많은 가능성을 제시하는 프로그램입니다.

사용 예,
PC를 리부팅한후 자동으로 실행 시키고 싶은것이 있습니까 ?
(예를 들면 리부팅후 어떤 음악한곡 듣고 편지함을 보고 내블로그로 접속 하고 싶으세요?)
고객들에게 일괄 인사 메일을 보내고 ,IP를 바궈놓고 작업하고 싶습니까?

웹게임을 자동으로 진행하고싶습니까?
항상하는 반복되는 노가다에서 해방될것입니다.

반복해서 여러가지 창을 열고 같은작업을 많이 하는것을 한꺼번에 자동으로 하고십습니까? 
매크로 동작을 키에 매핑할수도 있고 실행화일로 만들어 실행 시킬수도 있지요.

AutoScriptWriter  는 매크로 대로 기록하는 스크립트(파일)임
Convert .ahk to exe 는 매크로파일을 실행파일로 변환하는 파일임

많은종류의 마우스나 키보드 동작을 핫키로 등록하는 경우에는

AutoHotKey 를사용 하면 됩니다,



매크로를 이용해서 실행파일을 만든다.

매크로프로그램 매크로소프트웨어


AutoScriptWriter 실행 하고 상단 Browse 버튼으로 실행할 파일을 선택한다.

왼쪽 Run-time 메뉴위
Window Text/Record
Mouse/Record & Shrink  를 클릭해놓고
PC 상단의 A Record 버튼을 클릭하면
녹화(기록)가 시작된다.

화면 상단에 녹화중임을 알리는 아이콘을 볼수 있다. 최상단에 선택한 실행파일이 먼저 실행된다.

매크로

키보드,마우스,키보드를 사용해서 반복하는 작업을 한번 진행하여 기록하게 한다.
작업이 끝나면 상단의 [STOP]아이콘을 클릭하면. 모든 기록(녹화)이 중지됩니다.
이제 Save 버튼으로 저장해야지요,저장하면 .ahk 매크로 파일로 저장및 생성됩니다.



이제 편리한 실행파일로 만들어 놓기

Convert .ahk to exe
메뉴를 실행해서 콘버팅할 .ahk파일을 지정해서 콘버팅될 .exe파일을 지정하세요.

매크로


Convert 버튼 클릭해서 실행파일 생성.

제작자 홈페이지:
http://www.autohotkey.com/
 



Posted by 블로그에세이-BlogEssay Dramatique

댓글을 달아 주세요



티스토리 툴바