본문 바로가기

만드는 이야기138

오토핫키) 키보드 인식 또는 입력 http://www.autohotkey.com/docs/commands/Send.htmSend Keys SendRaw Keys SendInput Keys SendPlay Keys SendEvent Keys #^+!F9:: ;메크로실행후 WIN + CONTROL + SHIFT + ALT + F9를 입력시send #^+!{F7} ; WIN + CONTROL + SHIFT + ALT + F7를 입력return ! ;알트+ ;쉬프트^ ; 컨트롤# ;윈도우!: Sends an ALT keystroke. For example, Send This is text!a would send the keys "This is text" and then press ALT+a. Note: !A produces a different.. 2014. 3. 13.
오토핫키) loop 일반 루프, 파일 갯수만큼 루프 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 (re.. 2014. 3. 13.
오토핫키) 인풋 박스 /* -------------------------------------------------------------------------------------------------------- 물론 아래 소스에서 password 는 메세지 창에 넣치 않아도 됩니다만 변수에 대한 이해를 돕기위해 "%UserInput% (%password%)" 와 같이 수정했습니다.입력할때 이 주석문(초록색)은 삭제 필수.주석때문에 스크립트가 작동을 안함.이유는 모르겠음InputBox, OutputVar [, Title, Prompt, HIDE, Width, Height, X, Y, Font, Timeout, Default]http://www.autohotkey.com/docs/commands/InputBox.htm----.. 2014. 3. 13.
오토핫키)메세지박스 띄우기 ;MsgBox, Text;메세지 띄우기,내용;MsgBox [, Options, Title, Text, Timeout];메세지 띄우기[,버튼 종류 설정(링크 참조),메세지타이틀,메세지내용,시간제한(단위:초)];http://www.autohotkey.com/docs/commands/MsgBox.htm 참조 ;주의: 주석을 쓸때 ";"를 변수 바로 뒤에 붙이지 말것/* 예)IfMsgBox, No; 버그 발생IfMsgBox, No ; 버그 안발생*/ MsgBox, 4, , 난 세상의 중심이다 동의 하는가 ? `n 제한 시간은 5초다 그전에 대답하라 , 5 ; 5-second timeout.IfMsgBox, No; No 를 선택했을 경우 MsgBox, 나도 아니라고 생각한다. Return IfMsgBox, Tim.. 2014. 3. 13.