0w0

[AutoHotkey] HotHot 본문

Penguin

[AutoHotkey] HotHot

0w0 2019. 12. 19. 15:07
728x90
반응형

ref.

https://www.autohotkey.com/docs/Tutorial.htm

http://www.autohotkey.co.kr/cgi/contents.php?id=tutorial

http://www.autohotkey.co.kr/cgi/contents.php?id=commands _ 함수 및 명령

 

 

- 한글이 깨질경우 해당 ahk 파일을 유니코드로 저장되어있는지 확인해야함.

 

호출 특수문자

$ = 문자([0-9]), 탠키는 예외처리

# = win

^ = ctrl

! = alt

+ = shift

 

;키입력 형식

{Enter} = enter 키 입력

{Space} = space 키 입력

{ESC} = ESC 키 입력

{Tap} = tap 키 입력

{Ctrl} = Ctrl 키 입력

{Shift} = Shift 키 입력

{F1} = F1 키 입력                     

{F1} - {F24} Function keys. For example: {F12} is the F12 key.
{!} !
{#} #
{+} +
{^} ^
{{} {
{}} }
{Enter} Enter key on the main keyboard
{Escape} or {Esc} Escape
{Space} Space (this is only needed for spaces that appear either at the beginning or the end of the string to be sent -- ones in the middle can be literal spaces)
{Tab} Tab
{Backspace} or {BS} Backspace
{Delete} or {Del} Delete
{Insert} or {Ins} Insert
{Up}  (up arrow) key on main keyboard
{Down}  (down arrow) key on main keyboard
{Left}  (left arrow) key on main keyboard
{Right}  (right arrow) key on main keyboard
{Home} Home key on main keyboard
{End} End key on main keyboard
{PgUp} PageUp key on main keyboard
{PgDn} PageDown key on main keyboard
{CapsLock} CapsLock (using SetCapsLockState is more reliable on Win 2k/XP). Sending {CapsLock} might require SetStoreCapsLockMode Off beforehand.
{ScrollLock} ScrollLock (see also: SetScrollLockState)
{NumLock} NumLock (see also: SetNumLockState)
{Control} or {Ctrl} Control (technical info: sends the neutral virtual key but the left scan code)
{LControl} or {LCtrl} Left Control key (technical info: sends the left virtual key rather than the neutral one)
{RControl} or {RCtrl} Right Control key
{Control down} or {Ctrl down} Holds the Control key down until {Ctrl up} is sent. To hold down the left or right key instead, use {RCtrl down} and {RCtrl up}.
{Alt} Alt (technical info: sends the neutral virtual key but the left scan code)
{LAlt} Left Alt key (technical info: sends the left virtual key rather than the neutral one)
{RAlt} Right Alt key (or AltGr, depending on keyboard layout)
{Alt down} Holds the Alt key down until {Alt up} is sent. To hold down the left or right key instead, use {RAlt down} and {RAlt up}.
{Shift} Shift (technical info: sends the neutral virtual key but the left scan code)
{LShift} Left Shift key (technical info: sends the left virtual key rather than the neutral one)
{RShift} Right Shift key
{Shift down} Holds the Shift key down until {Shift up} is sent. To hold down the left or right key instead, use {RShift down} and {RShift up}.
{LWin} Left Win key
{RWin} Right Win key
{LWin down} Holds the left Win key down until {LWin up} is sent
{RWin down} Holds the right Win key down until {RWin up} is sent
{AppsKey} Menu key (invokes the right-click or context menu)
{Sleep} Sleep key.
{ASC nnnnn} Sends an Alt+nnnnn keypad combination, which can be used to generate special characters that don't exist on the keyboard. To generate ASCII characters, specify a number between 1 and 255. To generate ANSI characters (standard in most languages), specify a number between 128 and 255, but precede it with a leading zero, e.g. {Asc 0133}.
Unicode characters may be generated by specifying a number between 256 and 65535 (without a leading zero). However, this is not supported by all applications. For alternatives, see the section below.
{U+nnnn} [v1.0.90+]: Sends a Unicode character where nnnn is the hexadecimal value of the character excluding the 0x prefix. This typically isn't needed in Unicode versions of AutoHotkey, where Send and ControlSend automatically support Unicode text.
SendInput() or WM_CHAR is used to send the character and the current Send mode has no effect. Characters sent this way usually do not trigger shortcut keys or hotkeys.
{vkXX}
{scYYY}
{vkXXscYYY}
Sends a keystroke that has virtual key XX and scan code YYY. For example: Send {vkFFsc159}. If the sc or vk portion is omitted, the most appropriate value is sent in its place.
The values for XX and YYY are hexadecimal and can usually be determined from the main window's View->Key history menu item. See also: Special Keys
Warning: Combining vk and sc in this manner is valid only with Send. Prior to [v1.1.27], hotkeys permitted but ignored any non-hexadecimal characters following XX.
{Numpad0} - {Numpad9} Numpad digit keys (as seen when NumLock is ON). For example: {Numpad5} is 5.
{NumpadDot} . (numpad period) (as seen when NumLock is ON).
{NumpadEnter} Enter key on keypad
{NumpadMult} * (numpad multiplication)
{NumpadDiv} / (numpad division)
{NumpadAdd} + (numpad addition)
{NumpadSub} - (numpad subtraction)
{NumpadDel} Delete key on keypad (this key and the following Numpad keys are used when NumLock is OFF)
{NumpadIns} Insert key on keypad
{NumpadClear} Clear key on keypad (usually the '5' key when NumLock is OFF).
{NumpadUp}  (up arrow) key on keypad
{NumpadDown}  (down arrow) key on keypad
{NumpadLeft}  (left arrow) on keypad
{NumpadRight}  (right arrow) key on keypad
{NumpadHome} Home key on keypad
{NumpadEnd} End key on keypad
{NumpadPgUp} PageUp key on keypad
{NumpadPgDn} PageDown key on keypad
{Browser_Back} Select the browser "back" button
{Browser_Forward} Select the browser "forward" button
{Browser_Refresh} Select the browser "refresh" button
{Browser_Stop} Select the browser "stop" button
{Browser_Search} Select the browser "search" button
{Browser_Favorites} Select the browser "favorites" button
{Browser_Home} Launch the browser and go to the home page
{Volume_Mute} Mute/unmute the master volume. Usually equivalent to SoundSet, +1, , mute.
{Volume_Down} Reduce the master volume. Usually equivalent to SoundSet -5.
{Volume_Up} Increase the master volume. Usually equivalent to SoundSet +5.
{Media_Next} Select next track in media player
{Media_Prev} Select previous track in media player
{Media_Stop} Stop media player
{Media_Play_Pause} Play/pause media player
{Launch_Mail} Launch the email application
{Launch_Media} Launch media player
{Launch_App1} Launch user app1
{Launch_App2} Launch user app2
{PrintScreen} PrintScreen
{CtrlBreak} Ctrl+Pause
{Pause} Pause
{Click [Options]}
[v1.0.43+]
Sends a mouse click using the same options available in the Click command. For example, Send {Click} would click the left mouse button once at the mouse cursor's current position, and Send {Click 100, 200} would click at coordinates 100, 200 (based on CoordMode). To move the mouse without clicking, specify 0 after the coordinates; for example: Send {Click 100, 200, 0}. The delay between mouse clicks is determined by SetMouseDelay (not SetKeyDelay).
{WheelDown}, {WheelUp}, {WheelLeft}, {WheelRight}, {LButton}, {RButton}, {MButton}, {XButton1}, {XButton2} Sends a mouse button event at the cursor's current position (to have control over position and other options, use {Click} above). The delay between mouse clicks is determined by SetMouseDelay. WheelLeft/Right require [v1.0.48+], but have no effect on operating systems older than Windows Vista.
{Blind} Enables Blind mode, which gives the script more control by disabling a number of things that are normally done automatically to make things generally work as expected. The string {Blind} must occur at the beginning of the string.
{Raw}
[v1.0.43+]
Enables Raw mode, which causes the following characters to be interpreted literally: ^+!#{}. Although the string {Raw} need not occur at the beginning of the string, once specified, it stays in effect for the remainder of the string.
{Text}
[v1.1.27+]
Enables Text mode, which sends a stream of characters rather than keystrokes. Like Raw mode, Text mode causes the following characters to be interpreted literally: ^+!#{}. Although the string {Text} need not occur at the beginning of the string, once specified, it stays in effect for the remainder of the string.

 

 

;=================================================

 

;주석ㅎ

 

$`:: Send {Space 3}(...이하생략)

$1:: Send ^c   
;copy

$2:: Send ^v  
;paste

$3:: Send ^f  
;find

$4:: Send ^a
;all sellect

$5::Send {Enter}
;enter here good

$6::Send {BS}
;{Backspace}

 

F1:: Send testtest

 

;=================================================

 

#b:: Run www.bbs.com

;win+B : 웹 브라우저로 해당 url 접속 

 

#n:: Run Notepad

;win+n : spy로 확인된 프로그램 이름으로 특정 프로그램 실행

 

 

#d::
Run www.bbs.com   
Run calc.exe
return

;win+d : 다수 명령을 엔터로 구분하여 순차적 실행 가능, 마지막 행은 return으로 끝나는 구조

 

#s::

Send test1{Enter}test2
return

;엔터 입력 : {Enter}

 

::tmi::too much information

;단축 문자열, tmi를 입력하면 too much information으로 취환됨

 

 

728x90
반응형
Comments