- Elkha - Blue
- 매크로
- 오토핫키 커뮤니티
-
그냥 reload 하시면 안되나요?
-
리로드 해봤는데
루프 도중에 리로드 해버리고 다시 실행 시키면 중간에 리로드로 빠져나온부분부터 시작되더라구요 -
상태 체크 변수 만들어서 단축키 누르면 값 바꾸고 루프문안에서는 값체크해서 continue 하던가 break 걸면돼요. 함수 만들어 돌리면 return 써도 되구요
-
continue는 안되지 않나요?
-
루프 안빠지고 pause변수값체크해서 값 맞으면 아래 실행하고 아니면 continue로 넘기는 식으로 사용하면 될걸용
-
아. 무슨말씀인지 이해했습니다. 전 그냥 루프 탈출만 생각했지 continue로 무시하는건 생각을 못했네요. 하나 배웠습니다. 감사합니다.
-
혹시
단축키 누를시 값을 +1 씩 줘서
loop
{
홀수일때
{
loop
{
[원하던 루프문]
짝수일때 break
}
}
}
이렇게 할수가있나요??
명령어 조금만 알려주시면 혼자서라도 열심히 찾아보겠습니다
답변감사합니다 -
+1 값 주는것 보다는
그냥 단축키 누르면 변수에 특정 값 넣고 루프에서 특정값일때 break로 탈출하시는게 더 깔끔할것같아요.
예를 들어서
F4::
condition = 1
return
loop{
if(condition = 1){
condition = 0
break
}
}
이렇게 하면될거에요.
true, false로 하셔도 되구요. -
Mod(Dividend, Divisor): Modulo. Returns the remainder when?Dividend?is divided by?Divisor. The sign of the result is always the same as the sign of the first parameter. For example, both mod(5, 3) and mod(5, -3) yield 2, but mod(-5, 3) and mod(-5, -3) yield -2. If either input is a floating point number, the result is also a floating point number. For example, mod(5.0, 3) is 2.0 and mod(5, 3.5) is 1.5. If the second parameter is zero, the function yields a blank result (empty string).
2로 나눠서 나머지가 0이면 짝수 1이면 홀수~
-
단축키에 변수를 1개 추가해서 아래와 같은 방식으로 하셔도 되요
stop=0
r::Loop{if stop = 1{?break}send 1sleep 1000send 2sleep 1000send 3sleep 1000send 4sleep 1000send 5sleep 1000send 6sleep 1000send 7sleep 1000send 8sleep 1000send 9sleep 1000send 10sleep 1000}F1::stop = 1return