openGo()
{
CoordMode, Pixel, Screen
WinGetPos, pos_x,pos_y, width, height, BlueStacks App Player
x_right := width + pos_x
y_bottom := height + pos_y
While(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\lib\common\battle.bmp
if (ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(1000,1500)
hideclick2(120,90)
RandSleep(1000,1500)
break
}
}
While(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\lib\Gold\goldroom.bmp
if (ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
break
}
}
}
Gold()
{
CoordMode, Pixel, Screen
WinGetPos, pos_x,pos_y, width, height, BlueStacks App Player
x_right := width + pos_x
y_bottom := height + pos_y
G1:=0
G2:=0
G3:=0
While(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\lib\Gold\start.bmp
if (ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(5000,5500)
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\lib\Gold\fail.bmp ;상태창 확인
if (ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
superback()
RandSleep(1000,2000)
IniWrite,1,lib/Setting.ini,Mode,Gold
Reload
}
IniRead,G1,lib/Setting.ini,SkillChecked,G1
IniRead,G2,lib/Setting.ini,SkillChecked,G2
IniRead,G3,lib/Setting.ini,SkillChecked,G3
useskill(G1)
RandSleep(1500,2000)
useskill(G2)
RandSleep(1500,2000)
useskill(G3)
break
}
}
While(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\lib\Gold\re.bmp ;재시작
if (ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(5000,5500)
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\lib\Adventure\quest.bmp ;업적달성
if (ErrorLevel = 0)
hideclick(FoundX,FoundY)
break
}
}
}
Adventure.ahk
Gold.ahk
Battle.ahk
는 공유불가능한가요?