CoordMode, Pixel, Screen
imageSearcher(img){
?
?WinGetPos,x,y,w,h,BlueStacks App Player
?;Windows 7 64비트
?;Screen??775, 601
?;Relative?597, 513
?;Client??594, 488
?SysGet,wFrame,3 ; 현재 시스템의 Border값 (창 테두리 두께)
?SysGet,wCaption,22 ; 현재 시스템의 Caption값 (제목 표시줄 높이)
?posX:=x+wFrame
?posY:=y+wFrame+wCaption
?width:=w-wFrame*2
?height:=h-wCaption-wFrame*2
?edgeX := posX + width
?edgeY := posY? + height
?ImageSearch, oX, oY, posX, posY, edgeX, edgeY, *50 %A_ScriptDir%\img\%img%
?;x2:=oX-posX
?;y2:=oY-posY
?;MsgBox, x : %oX%? y : %oY%, x2 : %x2%? y2: %y2%, posX : %posX%? posY: %posY%
?
?
?if(ErrorLevel = 0){
??imgX := oX + 5
??imgY := oY + 5
??x:=imgX-posX
??y:=imgY-posY
??N:=x|y<<16
??PostMessage, 0x201, 1, %N%, , BlueStacks App Player
??PostMessage, 0x202, 0, %N%, , BlueStacks App Player
??sleep, 100
??return true
?}
?else if (ErrorLevel = 1){
??;Msgbox, 못찾음
?return false
?}
}
F1::
imageSearcher("시작.png")
return
F2::
imageSearcher("바로시작.png")
return
F3::
gosub, 스킬
return
F4::
gosub, go
return
스킬:
?;에이스?? 650x440 일도천화엽
?;제이브?? 570x440 분노의 일격,? 570x510? 용의 분노
?
?x:=650
?y:=440
?N:=x|y<<16
?PostMessage, 0x201, 1, %N%, , BlueStacks App Player
?PostMessage, 0x202, 0, %N%, , BlueStacks App Player
?sleep, 500
?
?x:=570
?y:=510
?N:=x|y<<16
?PostMessage, 0x201, 1, %N%, , BlueStacks App Player
?PostMessage, 0x202, 0, %N%, , BlueStacks App Player
?sleep, 500
?
?x:=570
?y:=440
?N:=x|y<<16
?PostMessage, 0x201, 1, %N%, , BlueStacks App Player
?PostMessage, 0x202, 0, %N%, , BlueStacks App Player
?sleep, 500
return
go:
?Loop{
??if(imageSearcher("시작.png")){
???sleep, 2000
???if(imageSearcher("열쇠_아니오.png")){
????sleep, 600000?;10분 기다림
???}
???else{
????sleep, 4000
????gosub, 스킬
????sleep, 30000
???}
??}
??else if(imageSearcher("바로시작.png" ))
??{
???sleep, 5000
???imageSearcher("확인.png" )
???sleep, 1000
???if(imageSearcher("열쇠_아니오.png"))
???{
????sleep, 600000?;10분 기다림
????imageSearcher("시작.png" )
???}
???sleep, 5000
???gosub, 스킬
???sleep, 30000
??}
??else if(imageSearcher("레이드발견.png" )){
???sleep, 2000
???imageSearcher("레이드.png" )
???sleep, 2000
???imageSearcher("마지막모험.png" )
??}
?}
return
?
게시판 자료로 참고해서 만들었습니다.
그냥 쫄작없이 모험만?계속 돌아요;;
내일은 쫄키우는거 추가해야겠습니다^^
무슨 게임 인가요?