특정 영역 마우스 왼클릭시 메세지 출력

SimpleHotkey_Script|2022. 3. 10. 23:20

스크립트 예제
<string,xpos=100>
<string,ypos=100>
<string,xend=200>
<string,yend=200>
<Loop_A>
<If_Press,◐>[

	<string,x=(mousex)>
	<string,y=(mousey)>
	<if,xpos{x>[
		<if,xend}x>[
			<if,ypos{y>[
				<if,yend}y>[
					<msg,x=,x, ,y=,y>
				]
			]			
		]
	]
]
<Delay,10>
<Goto_A>

모니터 영역의 100,100,200,200 좌표에서 마우스 왼클릭이 되면 마우스 위치를 스크립트 로그보기에서
좌표를 출력합니다. (로그보기 활성 > 옵션-스크립트 로그보기(debug) 활성화)

댓글()