Skip to content
AutoHotKey
2012.02.22 08:19

autohotkey) postmessage mouse control

조회 수 28639 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

autohotkey) postmessage mouse control

 

http://www.autohotkey.com/forum/topic47496.html

+q::
WinSetTitle,GridCal v1.0, ,GRIDCAL1

WinID := WinActive("GRIDCAL1")

SetFormat,integer,h
HexWinId := WinID

;Post MouseMove Message -- 0x021901AF is the x,y coordinate relative to window,no tscreen coordinates. -- position is 431,537
PostMsg("0x200","0x00000000","0x021901AF",WinID)

;Post MouseActivate Msg -- the WParam has to be true - i think it is 0x00000001
PostMsg("0x21",HexWinId,"0x00000001",WinID)

;Activate App -- the WParam has to be true - i think it is 0x00000001
PostMsg("0x1C","0x00000001","0x00000000",WinID)

;Activate -- here Wparam is HTCLIENT -- I read somewhere that its integer val is 2
PostMsg("0x06","0x00000002","0x00000000",WinID)

;Set Cursor -- hit-test code.is HTCLIENT and mouse mesage ID is 513
PostMsg("0x20",HexWinId,"0x02010001",WinID)

;Button Down -- position is 431,537
PostMsg("0x201","0x00000000","0x021901AF",WinID)

;Button Up -- position is 431,537
PostMsg("0x202","0x00000000","0x021901AF",WinID)

Return

+w::Reload


PostMsg(msg,Wparameter,LParameter,WindowID)
{
   PostMessage,%msg%,%Wparameter%,%LParameter%,,ahk_id %WindowID%
   Sleep,200   
}   

 

   관련 게시물 :

 

   AUTOhotKEY 웹페이지 열지않고 소스 가져오기 또는 로그인 하기 

   AUTOhotKEY 오토핫키 콤보박스 제어하기

   AUTOhotKEY 웹페이지 감시결과에 따라 마이피플로 글 전송하기

   AUTOhotKEY 윈도우 ahk_id 추출하기

   Autohotkey 엑셀(Excel)에서 행값 증가시키기

   Autohotkey 30분마다 자동으로 디스크 정리하기

                                                                     

                                                   

 

로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
97 WindowsTip XP USB 부팅디스크 만들기 & 고스트 2015.01.08 2090
96 Server XE <title>제목 - 사이트명</title> 으로 변경방법 2016.04.19 2082
95 컴퓨터잡담 파이썬 게시물 검색으로 새로운 게시물 등록시 지메일로 파일 보내기 2021.06.14 2062
94 컴퓨터잡담 파이썬 파라미터 변수값 전달받기 2021.06.16 2061
93 Server 오토셋과 apmsetup file 2016.02.17 2029
92 WindowsTip 멀티부팅 USB 만들기 file 2015.03.01 2012
91 Server XCOPY로 중요파일 백업하기 2016.03.26 1987
90 WindowsTip 공유기의 공인IP(Wan) 미할당으로 안되는 증상이 잦은경우 대처방법 file 2015.01.22 1973
89 Server XE Request 줄이기 file 2016.09.07 1964
88 Server 파일 업로드 폴더 변경 2015.07.13 1962
87 파이썬 파이썬 any, all 사용하기(배열데이터 안에 값이 하나라도 있는지 또는 모두 있는지 비교) 2021.09.11 1962
86 WindowsTip ISO USB 굽기 최고의 프로그램 file 2015.03.20 1925
85 Server XE Content font-size:수정방법 file 2016.04.19 1883
84 컴퓨터잡담 파이썬으로 네이버 증권정보 추출하기 2021.06.05 1877
83 파이썬 파이썬 매수할 피라미드 매수전략 2021.09.06 1865
82 컴퓨터잡담 [파이썬] 설치 및 사용방법 file 2021.03.12 1863
81 [Docs]스프레드시트 스프레드시트에서 수정, 삭제 버튼 만들기 2023.03.09 1849
80 Server xe 타이틀 게시판 이름 없애기 file 2016.06.28 1844
79 Server PHP Opcache 속도개선 시키기 2016.03.07 1839
78 WindowsTip usb 쓰기가 금지되어 있습니다 해제방법 file 2015.01.22 1834
Board Pagination Prev 1 ... 40 41 42 43 44 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소