오토핫키 커뮤니티

질문
2018.06.09 16:06

루프 구문 그리고 이미지서치

조회 수 102 추천 0 댓글 2
F11::
Loop
{
MouseClick, Left, 746, 603
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다2
노가다2:
MouseClick, Left, 771, 581
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다3
노가다3:
MouseClick, Left, 717, 559
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다4
노가다4:
MouseClick, Left, 674, 572
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다5
노가다5:
MouseClick, Left, 669, 556
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다6
노가다6:
MouseClick, Left, 722, 540
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다7
노가다7:
MouseClick, Left, 750, 509
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다8
노가다8:
MouseClick, Left, 771, 485
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다9
노가다9:
MouseClick, Left, 782, 523
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다10
노가다10:
MouseClick, Left, 795, 574
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다11
노가다11:
MouseClick, Left, 774, 541
Sleep, 3000
Loop, 5
{
ImageSearch, ax, ay, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남왼.bmp
If ErrorLevel = 0
{
ax += 15
ay += 25
MouseClick, Left, ax, ay
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남우.bmp
If ErrorLevel = 0
{
bx += 15
by += 25
MouseClick, Left, bx, by
MouseMove, 0, 0
}
}

If ErrorLevel =1
{
ImageSearch, cx, cy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남앞.bmp
If ErrorLevel = 0
{
cx += 15
cy += 25
MouseClick, Left, cx, cy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, dx, dy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 남뒤.bmp
If ErrorLevel = 0
{
dx += 15
dy += 25
MouseClick, Left, dx, dy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ex, ey, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛왼.bmp
If ErrorLevel = 0
{
ex += 15
ey += 25
MouseClick, Left, ex, ey
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, fx, fy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛우.bmp
If ErrorLevel = 0
{
fx += 15
fy += 25
MouseClick, Left, fx, fy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, gx, gy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛앞.bmp
If ErrorLevel = 0
{
gx += 15
gy += 25
MouseClick, Left, gx, gy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, hx, hy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 빛뒤.bmp
If ErrorLevel = 0
{
hx += 15
hy += 25
MouseClick, Left, hx, hy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, ix, iy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈왼.bmp
If ErrorLevel = 0
{
ix += 15
iy += 25
MouseClick, Left, ix, iy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, jx, jy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈우.bmp
If ErrorLevel = 0
{
jx += 15
jy += 25
MouseClick, Left, jx, jy
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, kx, ky, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈앞.bmp
If ErrorLevel = 0
{
kx += 15
ky += 25
MouseClick, Left, kx, ky
MouseMove, 0, 0
}
}

If ErrorLevel = 1
{
ImageSearch, lx, ly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 갈뒤.bmp
If ErrorLevel = 0
{
lx += 15
ly += 25
MouseClick, Left, lx, ly
MouseMove, 0, 0
}

If ErrorLevel = 1
{
ImageSearch, mx, my, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈.bmp
If ErrorLevel = 0
{
MouseClick, Left, mx, my
}

IF ErrorLevel = 1
{
ImageSearch, nx, ny, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈1.bmp
If ErrorLevel = 0
{
MouseClick, Left, nx, ny
}

If ErrorLevel = 1
{
ImageSearch, ox, oy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈2.bmp
If ErrorLevel = 0
{
MouseClick, Left, ox, oy
}

If ErrorLevel = 1
{
ImageSearch, px, py, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈3.bmp
IF ErrorLevel = 0
{
MouseClick, Left, px, py
}

If ErrorLevel = 1
{
ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp
If ErrorLevel = 0
{
MouseClick, Left, qx, qy
}
}
}
}
}
}
}
}
Sleep, 1000
goto, 노가다Max
노가다MAX:
MouseClick, Left, 746, 603
Sleep, 10000
}

return
F12::Pause

자동사냥&노가다를 위해 만든 매크로입니다. 고정된 맵에서 총 11개의 맵 포인트를 밟으며, 5개 실행 및 클릭이 되는 루프 구문으로 순환 사냥을 하기 위한 의도가 담겨져 있는 매크로입니다.

그런데 문제점이 엄청 많더군요..

맵에 해당 몬스터가 있어 루프 구문의 이미지서치가 제대로 작동될 경우, 스크립트 실행 속도가 굉장히 빠르나 맵에 해당 몬스터가 없어 이미지서치가 되지 않을 경우, 5개의 루프가 작동되는 시간이 너무나도 길어집니다. 사실 이게 제일 안가는 부분이긴 합니다. 어차피 if구문이기에 맵에 몬스터가 없다면 바로 다음 맵포인트를 찍는 것이 맞다고 생각하는데... 도움 좀 주십시오

  • 혁이 2018.06.09 18:44

    ImageSearch, qx, qy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 정눈4.bmp

    이미지 서치 범위를 줄여보세요. 

    0, 0, A_ScreenWidth, A_ScreenHeight 화면 전체에서 서치하게 해놔서 느린것 같네요.

  • Hangoon 2018.06.10 11:21
    Errorlevel은 이미지써치 명령의 고유 반환 변수가 아닌
    오토핫키 모든 명령어의 수행결과 오류코드를 담는 변수입니다
    위와 같이 코딩을 하고 싶으시면 이미지써치 바로 아래 라인에서 Errorlevel을 다른 변수에 보관하고 그 변수를 에러레벨 대신 사용하시는게 맞을거 같습니다

    코드가 굉장히 긴데.. 제가 볼땐 이렇게 길게 작성할 코드가 아닌것 같습니다
    함수와 루프문을 잘 활용하면 현재 작성된 코드보다 훨씬 가독성도 좋고 정리도 잘 된 형태로 작성이 될 것 같네요

List of Articles
분류 제목 글쓴이 최근변경 추천
질문 if문 else if , else 순서 맞나요? 7 레이오 2018.06.24 0/0
자유 DropDownList 와 IniRead 불러온 값으로 선택되게 할려... 10 Rabbit 2018.06.23 0/0
질문 돌 키우기 매크로 2 komgoo 2018.06.24 0/0
질문 비활성이미지서치 재질문 3 cho9161 2018.06.18 0/0
질문 비활성이미지서치 개발환경 윈7/64비트 질문 4 cho9161 2018.06.18 0/0
질문 혹시 미뮤에서 PostMessage 동작하나요? 웃진 2018.06.11 0/0
자유 보안괜찮은지 디컴좀해주세요! 6 이주우우오 2018.07.10 0/0
질문 루프 구문 그리고 이미지서치 2 하얏꾸 2018.06.10 0/0
질문 gdip 쓰려는데 문제가 있습니다.... 2 패귀다리기 2018.06.27 0/0
질문 마우스 클릭 시 postmessage 씹힘 현상. 유한 2018.06.07 0/0
질문 winmove 실행시 오토핫키 팅김 질문드립니다 Liayn 2018.06.05 0/0
질문 블루스택 멀티 비활성 질문입니다 2 zndkdk 2018.06.13 0/0
질문 일랜시아라는 게임을 하는데요.. 3 하얏꾸 2018.09.12 0/-1
질문 이미지 서치에 대한 질문입니다! 3 FreeSoft 2018.06.11 0/0
질문 Gdip_imagesearch의 기능이 무엇인가요? 4 패귀다리기 2018.09.01 0/0
자유 초심자가 쓸만할까요? 2 seonnia 2018.06.27 0/0
질문 블루스택 멀티 비활성 질문있습니다 2 zndkdk 2018.06.05 0/0
질문 오토핫키가 게임에서 적용이 안돼요 3 하얏꾸 2018.06.05 0/0
질문 ahk가 바탕화면만 인식해요 2 도움 2018.06.04 0/0
질문 특정프로그램 마우스 안먹힘 1 쿠우우우우 2018.06.04 0/0
Board Pagination Prev 1 ... 575859606162636465 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글