이미지인식을 발견했을시 진행되는 설정에서 sleep 시간들을 랜덤으로 설정하는 법좀 알려주시면 감사하겠습니다.
(1초에서 3초 사이로 랜덤하게 타이핑되도록 설정하고 싶어요)
F1::
loop
{
ImageSearch,vx, vy, 0,0, A_ScreenWidth, A_ScreenHeight, *100 wok.png
if errorlevel = 0
{
send, d
sleep, 2000
send, q
sleep, 1500
send, w
sleep, 1500
send, a
sleep, 1500
send, s
sleep, 1500
send, d
sleep, 1500
send, e
sleep, 1500
send, a
sleep, 1500
send, s
sleep, 1500
send, d
sleep, 1500
send, r
sleep, 1500
send, a
sleep, 1500
send, s
sleep, 1500
send, d
sleep, 1500
send, t
sleep, 1500
send, a
sleep, 1500
send, s
sleep, 1500
send, d
sleep, 1500
send, f
sleep, 1500
send, z
sleep, 1500
send, x
sleep, 1500
}
}
return
F2::
Reload
return
Random, SleepTime, 1000, 3000
Sleep, %SleepTime%