Gui, Add, Text , x50 y5 w150 h20, F1 Start
Gui, Add, Text , x50 y20 w150 h20, F2 Fin
IfNotExist, BlueStacks App Player
{
Run, C:\Program Files (x86)\BlueStacks\HD-StartLauncher.exe
}
Gui, Show
start := false
F1::
{
CoordMode, Pixel, Screen
WinGetPos, pos_x,pos_y, width, height, BlueStacks App Player
x_right := width + pos_x
y_bottom := height + pos_y
start := true
Loop
{
While(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\image\mo.bmp
if (ErrorLevel = 0 && start = true)
{
hideclick(FoundX,FoundY)
RandSleep(5000,5500)
hideclick2(470,450) ;1번스킬
RandSleep(5000,5500)
hideclick2(470,390) ;2번스킬
break
}
}
While(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\image\re.bmp ;재시작
if (ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(7000,7500)
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\image\lv30.bmp ;상태창 확인
if (ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(4000,4500)
set()
lvset()
ready()
back()
break
}
else
{
break
}
}
}
}
}
set()
{
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%\image\set.bmp ;영웅관리
if(ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(2000,2500)
hideclick2(135,405)
teamout()
hideclick2(135,325) ;3번제거
teamout()
;hideclick2(135,240) ;2번제거
;teamout()
;hideclick(135,165) ;1번제거
;teamout()
break
}
}
}
ready()
{
CoordMode, Pixel, Screen
WinGetPos, pos_x,pos_y, width, height, BlueStacks App Player
x_right := width + pos_x
y_bottom := height + pos_y
hideclick2(330,205) ;4번추가
teamin()
while(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *40 %A_ScriptDir%\image\4.bmp
if(ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
break
}
}
RandSleep(1000,1500)
hideclick2(455,205) ;3번추가
teamin()
while(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *40 %A_ScriptDir%\image\3.bmp
if(ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
break
}
}
RandSleep(1000,1500)
;hideclick2(585,205) ;2번추가
;teamin()
;hideclick2(135,240)
;RandSleep(5000,5500)
;hideclick2(735,205) ;1번추가
;teamin()
;hideclick2(135,165)
;RandSleep(5000,5500)
}
teamout()
{
CoordMode, Pixel, Screen
WinGetPos, pos_x,pos_y, width, height, BlueStacks App Player
x_right := width + pos_x
y_bottom := height + pos_y
RandSleep(3000,3500)
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\image\teamout.bmp
if(ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(3000,3500)
}
}
teamin()
{
CoordMode, Pixel, Screen
WinGetPos, pos_x,pos_y, width, height, BlueStacks App Player
x_right := width + pos_x
y_bottom := height + pos_y
start := true
RandSleep(2000,2500)
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\image\teamin.bmp
if(ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
}
}
lvset()
{
CoordMode, Pixel, Screen
WinGetPos, pos_x,pos_y, width, height, BlueStacks App Player
x_right := width + pos_x
y_bottom := height + pos_y
start := true
while(true)
{
ImageSearch,FoundX,FoundY,%pos_x%,%pos_y%,%x_right%,%y_bottom%, *50 %A_ScriptDir%\image\lvup.bmp
if(ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
RandSleep(1500,2000)
hideclick(FoundX,FoundY)
RandSleep(1500,2000)
break
}
}
}
back()
{
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%\image\back.bmp
if(ErrorLevel = 0)
{
hideclick(FoundX,FoundY)
break
}
}
}
hideclick(x,y)
{
WinGetPos, w_x, w_y, w_w, w_h, BlueStacks App Player
inx := x - w_x
iny := y - w_y
lparam := inx|iny<<16
PostMessage, 0x201, 1, %lparam%, , BlueStacks App Player
PostMessage, 0x202, 0, %lparam%, , BlueStacks App Player
}
hideclick2(x,y)
{
lparam := x|y<<16
PostMessage, 0x201, 1, %lparam%, , BlueStacks App Player
PostMessage, 0x202, 0, %lparam%, , BlueStacks App Player
}
RandSleep(x,y)
{
Random, rand, %x%, %y%
Sleep %rand%
}
F2::
{
start = false
ExitApp
}
return
뭐 간단하게