Skip to content
AutoHotKey
2012.02.22 08:19

autohotkey) postmessage mouse control

조회 수 28635 추천 수 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
번호 분류 제목 날짜 조회 수
837 AutoHotKey autohotkey와 autohotkey_l 의 인터넷 창 띄우기 비교예제 2 2011.02.11 17775
836 컴퓨터잡담 AVR 강좌 3 2012.07.07 4860
835 컴퓨터잡담 bat(배치) 파일 제대로 쓰기 2009.11.24 6874
834 컴퓨터잡담 bat(배치)파일 문법 3 2009.11.19 13294
833 컴퓨터잡담 bat(배치)파일 문법 3 2009.11.19 12462
832 컴퓨터잡담 blogapi 기능을 사용하여 xe 게시판으로 글쓰기 2012.11.20 7173
831 Visual C++ c 와 c++ 의 차이점 12 2010.12.05 22396
830 Visual C++ C# - Etrade API 11 file 2013.02.20 15647
829 Visual C++ C# - etrade api site 게시물 1 2013.02.20 32892
828 Visual C++ C#) 입문 - 프로젝트 생성하기 4 file 2013.02.12 18322
827 Visual C++ c++의 상식, 프로그램의 시작 15 2011.01.25 18838
826 컴퓨터잡담 CANON PRINTER ERROR CODE B203, B204 해결방법 2023.09.17 96495
825 HTMLPHPMSQL CCS 메뉴 스타일 링크 2021.08.04 3898
824 컴퓨터잡담 CCTV VIEWEASYV2 file 2019.05.31 4152
823 파이썬 chatGPT file 2023.02.11 4405
822 프로세스 CKAgent.exe npkcmsvc.exe nvsvc32.exe 1 2011.02.07 13222
821 AutoHotKey COM 사용 1 2011.02.21 19069
820 AutoHotKey com.ahk 1 2011.02.09 18261
819 AutoHotKey Com_invoke to login 2011.02.11 10712
818 컴퓨터잡담 CPU-Z file 2019.02.23 3924
Board Pagination Prev 1 ... 3 4 5 6 7 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소