오토핫키 커뮤니티보다 여기서 많이 배워서 요즘도 유용하게 사용하고있네요~
이런식으로 A1부터 A16까지 16개를 만들어서 썼었는데..
시간이 없어서 메뉴 쪼갤시간이 없었던지라..?
지금보니 가관이네요ㅎㅎ?
if(A1=1) ?; 7-9 루비작
{
모험A1:
{
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 모험시작.bmp
if errorlevel = 0
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 해피1성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 3000
gosub, 1팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 해피2성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 3000
gosub, 1팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 해피3성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 3000
gosub, 1팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 모험시작.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 2000
}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 모험눌러진상태.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 모험뒤로.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 레이드.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 5000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 30레벨달성확인.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 5000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 뒤로.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 레이드글씨.bmp
if errorlevel = 0
{
sleep, 1000
send,{ESC}
sleep, 3000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 7-9.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 모험준비.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 10000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 자동스킬.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 모험다시하기.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 5000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 열쇠부족.bmp
if errorlevel = 0
{
sleep, 1000
send,{ESC}
sleep, 3000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 열쇠구매버튼.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY
sleep, 1000
goto, 1번A1
}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 1번스킬.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
goto, 두번째스킬A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 30레벨달성확인.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 5000
}
}
}
두번째스킬A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 두칸.bmp
if errorlevel = 0
{
sleep, 1000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 2번스킬.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
goto, 세번째스킬A1
}
}
}
세번째스킬A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 세칸.bmp
if errorlevel = 0
{
sleep, 1000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 3번스킬.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 모험다시하기.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 5000
goto, 모험A1
}
}
모험1A1:
{
sleep, 5000
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B1%2성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 3000
gosub, 2팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B2%2성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 3000
gosub, 2팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B1%3성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 3000
gosub, 2팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B2%3성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 3000
gosub, 2팀쫄교체A1
}
else
{
sleep, 1000
gosub, 모험A1
sleep, 1000
}
}
}
모험2A1:
{
sleep, 5000
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C1%1성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 5000
gosub, 3팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C1%2성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 5000
gosub, 3팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C1%3성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 5000
gosub, 3팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C2%1성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 5000
gosub, 3팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C2%2성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 5000
gosub, 3팀쫄교체A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C2%3성30렙.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
Mouseclick,left,306,474
sleep, 5000
gosub, 3팀쫄교체A1
}
else
{
sleep, 1000
gosub, 모험A1
sleep, 1000
}
}
}
1팀쫄교체A1:
{
a=0
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 해피1성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 1팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 해피2성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 1팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 해피3성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 1팀배치A1
sleep, 1000
}
gosub, 스크롤A1
a:=a+1
sleep, 3000
if (a >10 )
{
sleep, 1000
send,{ESC}
sleep, 1000
gosub, 모험1A1
}
}
}
2팀쫄교체A1:
{
a=0
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B1%2성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 2팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B2%2성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 2팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B1%3성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 2팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %B2%3성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 2팀배치A1
sleep, 1000
}
gosub, 스크롤A1
a:=a+1
sleep, 3000
if (a >10 )
{
sleep, 1000
send,{ESC}
sleep, 1000
gosub, 모험2A1
}
}
}
3팀쫄교체A1:
{
a=0
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C1%1성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 3팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C1%2성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 3팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C1%3성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 3팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C2%1성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 3팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C2%2성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 3팀배치A1
sleep, 1000
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 %C2%3성1렙.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY-10
gosub, 3팀배치A1
sleep, 1000
}
gosub, 스크롤A1
a:=a+1
sleep, 3000
if (a >10 )
{
sleep, 1000
send,{ESC}
sleep, 1000
gosub, 모험A1
}
}
}
1팀배치A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 팀배치.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 3000
Mouseclick,left,172,165
sleep, 5000
send,{ESC}
sleep, 5000
gosub, 모험1A1
}
}
2팀배치A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 팀배치.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 3000
Mouseclick,left,172,243
sleep, 5000
send,{ESC}
sleep, 5000
gosub, 모험2A1
}
}
3팀배치A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *99 팀배치.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 3000
Mouseclick,left,172,331
sleep, 5000
send,{ESC}
sleep, 5000
gosub, 모험A1
}
}
1번A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 상점광고.bmp
if errorlevel = 0
{
sleep, 1000
send, {ESC}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 열쇠6개.bmp
if errorlevel = 0
{
sleep, 1000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 상점뒤로.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY
sleep, 1000
goto, 모험A1
}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 열쇠7개.bmp
if errorlevel = 0
{
sleep, 1000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 상점뒤로.bmp
if errorlevel = 0
{
sleep, 1000
Mouseclick,left,vX,vY
sleep, 1000
goto, 모험A1
}
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 명예10사용.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
goto, 2번A1
}
}
2번A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 구매하기.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
goto, 3번A1
}
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 상점명예부족.bmp
if errorlevel = 0
{
sleep, 1000
goto, 명예A1
}
}
명예A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 구매완료확인.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 2000
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 상점뒤로.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
goto, 모험A1
}
}
}
3번A1:
loop
{
imagesearch, vX, vY, 1,1, A_ScreenWidth, A_ScreenHeight, *30 구매완료확인.bmp
if errorlevel = 0
{
Mouseclick,left,vX,vY
sleep, 1000
goto, 1번A1
}
}
스크롤A1:
{
mousemove,392,489 ;이동을 시작한 지점까지 마우스 이동후
send,{LButton down}
mousemove,392,250,20 ;speed 조절을 통해서 무브 속도 조절 가능합니다.
send,{LButton up}
sleep, 1000
return
}
}
}
예전에 작성한코드 다시보면 흑역사 투성이죠.
오핫사는 많이 죽어버렸고 원래부터 게임쪽 질문은 잘 안받아줘서
이쪽이 그나마 살아남아있는거죠.