티스토리 뷰

#15.오토핫키 비활성클릭/비활성입력(postmessage)





안녕하세요 코드모아 입니다.


 1월 3일  #15.오토핫키 비활성클릭/비활성입력(postmessage) 에대해 강의하겠습니다.




postmessage : 전하고자하는 post (입력,클릭 = 택배 )를 message(~를보내다) 하는것이다.


쉽게말해, 클릭을원하면 클릭이라는 택배를 컴퓨터에보내어 보낸택배를 수행하도록하는것이다.





Controlsend/Controlclick 과 Postmessage의 차이점은


Controlsend/Controlclick은 사용중 키보드입력,마우스클릭이 비활성됩니다 하지만 Postmessage는 사용중 키보드입력,마우스클릭이 비활성이 되지않습니다.


ex) 이메일작성중 Controlsend/Controlclick 사용시 이메일입력중인키보드입력/마우스클릭 이안됩니다.






Postmessage


문법 : 



Postmesaage, Msg [, wParam , lparam , control , wintitle , wintext , Excludetitle , ExcludeText ]




param.exe


아래의 설명을 보시기전에 다운받아주세요.

( postmessage를 사용하기위해서 필수적은 프로그램입니다. )






Msg : 보내고자하는 메시지 번호






wParam,Iparam : 키보드나마우스의 고유값정보값으로 

각가의 약자는 wordParameter , longParameter 입니다. 


마우스관련 postmessage를 이용하실때 IParam값은

IParam := ( A * 65536 ) + B 입니다.

A = Y좌표

B = X좌표




키보드 숫자 "1"의 고유값과 정보값이 나타나있습니다.

키보드 와 마우스의 고유값 , 정보값을 암기할필요가없습니다. Param.exe 라는 프로그램이 구해줍니다.






control :  ClassNN값입니다.  

"외)오토핫키 coordmode(좌표),Window spy사용법"을 보면 알수있다.




wintitle : 창의 Title(제목)입니다. 

"번외)오토핫키 coordmode(좌표),Window spy사용법"을 보면 알수있다.




아래의 명령어는 모르셔도 Postmessage를 이용하실때 지장이없습니다.



wintext : 창의 Text(글)부분



ExcludeTitle : Postmessage에 제외할 창의 Title(제목)



ExcludeText : 창안에서 Postmessage를 제외할 Text(글) 







예시를 보시고 직접연습해보시는게 가장좋은 공부법입니다.



ex)


Gui, Add, Text, x12 y19 w170 h20 , 오토핫키강좌는 역시 코드모아!

Gui, Add, Button, x8 y39 w170 h40 gbutton,버튼

Gui, Show, w190 h88,#15.오토핫키 비활성클릭/비활성입력(postmessage)

return

button:

postmessage,0x100,97,131073,Edit1,제목 없음 - 메모장 

postmessage,0x100,98,196609,Edit1,제목 없음 - 메모장

postmessage,0x100,99,262145,Edit1,제목 없음 - 메모장

postmessage,0x100,100,327681,Edit1,제목 없음 - 메모장

postmessage,0x100,101,4980737,Edit1,제목 없음 - 메모장

postmessage,0x100,102,5046273,Edit1,제목 없음 - 메모장

postmessage,0x100,103,4653057,Edit1,제목 없음 - 메모장

postmessage,0x100,104,4718593,Edit1,제목 없음 - 메모장

postmessage,0x100,105,4784129,Edit1,제목 없음 - 메모장

postmessage,0x100,96,5373953,Edit1,제목 없음 - 메모장

return

GuiClose:

ExitApp



메모장에 postmessage를 이용하여 "1234567890"을 입력한영상입니다.


#15.오토핫키 비활성클릭/비활성입력(postmessage)을 마치겠습니다.

다음강의는 #16.오토핫키 Listbox/Listview 에대해 강의해보겠습니다.

질문 및 궁금한점은 댓글로남겨주세요.



'Autohotkey(오토핫키)' 카테고리의 다른 글

#17.오토핫키 SetTimer  (0) 2018.01.05
#16.오토핫키 Listbox/Listview  (1) 2018.01.04
번외)오토핫키 서버인증  (6) 2018.01.01
#14.오토핫키 urldownloadtofile  (3) 2018.01.01
#13.오토핫키 반복문(while)  (0) 2018.01.01
댓글