10초, 15초마다 A,B키 누르기

SimpleHotkey_Script|2022. 3. 11. 11:20

스크립트 예제
<string,a=0>
<string,b=0>
<Loop_A>
	<calc,a=a+1>
	<calc,b=b+1>
	<if,a=10>[A<string,a=0>]
	<if,b=15>[B<string,b=0>]
	<delay,1000>
<Goto_A>

일정한 간격으로 키를 누르는 스크립트 예제 입니다. 

a, b 변수값을 변경해가며 키입력을 메모장에서 테스트 해보세요.

댓글()

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

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) 활성화)

댓글()

메모장 구구단 2단~9단 출력-2

SimpleHotkey_Script|2022. 3. 9. 10:18

스크립트 예제
<string,a=2><string,b=1>
	<Repeat,8>[
		<Repeat,9>[
			<If,a=5>[5단은 무시⇒<ExitRepeat>]
			<calc,c=a*b>
			<sendkey,a>x<sendkey,b>=<sendkey,c>⇒
			<calc,b=b+1>
		]
	<calc,a=a+1>
	<string,b=1>⇒
    ]

스크립트를 복사한 후, 메모장에서 실행 해보세요.

구구단 5단은 무시하고 2단부터 9단까지 출력 됩니다!!

댓글()