Code:
IniRead, box, C:\ab.ini, timer, box,0
IniRead, box1, C:\ab.ini, timer, box1,0
IniRead, box2, C:\ab.ini, timer, box2,0
IniRead, box3, C:\ab.ini, timer, box3,0
IniRead, box4, C:\ab.ini, timer, box4,0
IniRead, box5, C:\ab.ini, timer, box5,0
IniRead, box6, C:\ab.ini, timer, box6,0
count = 1
gc = 0
SetTitleMatchMode 2
Gui, +alwaysontop +ToolWindow
Gui, Add, CheckBox, x16 y10 w100 h20 checked vattack, Attack
Gui, Add, Edit, x116 y10 w50 h20 vbox , %box%
Gui, Add, CheckBox, x16 y40 w100 h20 vclick1, Click1
Gui, Add, Edit, x116 y40 w50 h20 vbox1, %box1%
Gui, Add, Button, x176 y40 w50 h20 gset1, Set1
Gui, Add, CheckBox, x16 y70 w100 h20 vclick2 , Click2
Gui, Add, Edit, x116 y70 w50 h20 vbox2, %box2%
Gui, Add, Button, x176 y70 w50 h20 gset2, Set2
Gui, Add, CheckBox, x16 y100 w100 h20 vclick3, Click3
Gui, Add, Edit, x116 y100 w50 h20 vbox3 , %box3%
Gui, Add, Button, x176 y100 w50 h20 gset3, Set3
Gui, Add, CheckBox, x16 y130 w100 h20 vclick4, Click4
Gui, Add, Edit, x116 y130 w50 h20 vbox4, %box4%
Gui, Add, Button, x176 y130 w50 h20 gset4, Set4
Gui, Add, CheckBox, x16 y160 w100 h20 vclick5, Click5
Gui, Add, Edit, x116 y160 w50 h20 vbox5, %box5%
Gui, Add, Button, x176 y160 w50 h20 gset5, Set5
Gui, Add, CheckBox, x16 y190 w100 h20 vclick6, Click6
Gui, Add, Edit, x116 y190 w50 h20 vbox6, %box6%
Gui, Add, Button, x176 y190 w50 h20 gset6, Set6
Gui, Add, CheckBox, x16 y225 w100 h30 vHP, HP
Gui, Add, Button, x176 y230 w50 h20 gset7, Set7
Gui, Add, Button, x116 y230 w50 h20 gset7b, Set
Gui, Add, CheckBox, x16 y255 w100 h30 vMP, MP
Gui, Add, Button, x176 y260 w50 h20 gset8, Set8
Gui, Add, Button, x116 y260 w50 h20 gset8b, Set
Gui, Add, Button, x16 y290 w210 h40 vss gStart, Start
Gui, Show, x1 y1 h339 w249, ab bot
Return
GuiClose:
ExitApp
Start:
Gui, Submit
settimer, reset, 1200000
IniWrite, %box%, C:\ab.ini, timer, box
IniWrite, %box1%, C:\ab.ini, timer, box1
IniWrite, %box2%, C:\ab.ini, timer, box2
IniWrite, %box3%, C:\ab.ini, timer, box3
IniWrite, %box4%, C:\ab.ini, timer, box4
IniWrite, %box5%, C:\ab.ini, timer, box5
IniWrite, %box6%, C:\ab.ini, timer, box6
count = 0
GuiControl,, ss, Pause
WinActivate, Firefox
settimer, aa, 500
if HP = 1
settimer, hhpp, 5500
if MP = 1
settimer, mmpp, 6000
return
aa:
WinWaitActive, Aurora Blade
if attack = 1
{
PixelSearch, Px, Py, 530, 300, 650, 400, 0xffffff, 3, Fast
if errorlevel
{
PixelSearch, Px, Py, 530, 200, 650, 400, 0xffffff, 3, Fast
if errorlevel
{
PixelSearch, Px, Py, 530, 110, 650, 400, 0xffffff, 3, Fast
}
}
click %Px%, %Py%
}
if click1 = 1
{
sleep %box1%
click %ck1x%, %ck1y%
}
if click2 = 1
{
sleep %box2%
click %ck2x%, %ck2y%
}
if click3 = 1
{
sleep %box3%
click %ck3x%, %ck3y%
}
if click4 = 1
{
sleep %box4%
click %ck4x%, %ck4y%
}
if click5 = 1
{
sleep %box5%
click %ck5x%, %ck5y%
}
if click6 = 1
{
sleep %box6%
click %ck6x%, %ck6y%
}
if attack = 1
{
sleep %box%
}
return
set1:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck1x := xpos
ck1y := ypos
GuiControl,, click1, 1
GuiControl,, click1, x%xpos% y%ypos%
return
set2:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck2x := xpos
ck2y := ypos
GuiControl,, click2, 1
GuiControl,, click2, x%xpos% y%ypos%
return
set3:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck3x := xpos
ck3y := ypos
GuiControl,, click3, 1
GuiControl,, click3, x%xpos% y%ypos%
return
set4:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck4x := xpos
ck4y := ypos
GuiControl,, click4, 1
GuiControl,, click4, x%xpos% y%ypos%
return
set5:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck5x := xpos
ck5y := ypos
GuiControl,, click5, 1
GuiControl,, click5, x%xpos% y%ypos%
return
set6:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck6x := xpos
ck6y := ypos
GuiControl,, click6, 1
GuiControl,, click6, x%xpos% y%ypos%
return
set7:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
PixelGetColor, color, %xpos%, %ypos%
ck7x := xpos
ck7y := ypos
GuiControl,, HP, 1
GuiControl,, HP, %color%`nx%xpos% y%ypos%
return
set7b:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck7bx := xpos
ck7by := ypos
return
set8:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
PixelGetColor, Mcolor, %xpos%, %ypos%
ck8x := xpos
ck8y := ypos
GuiControl,, MP, 1
GuiControl,, MP, %Mcolor%`nx%xpos% y%ypos%
return
set8b:
WinActivate, Aurora Blade
sleep 500
KeyWait, a, D
MouseGetPos, xpos, ypos
ck8bx := xpos
ck8by := ypos
return
hhpp:
WinWaitActive, Aurora Blade
PixelGetColor, color1, %ck7x%, %ck7y%
if color1 != %color%
{
counting = 60
tooltip, lowHP, 1,1
settimer, aa, off
loop 20
{
sleep 1000
counting--
tooltip, lowHP %counting%, 1,1
}
click %ck7bx%,%ck7by%
gosub, reset
loop 40
{
sleep 1000
counting--
tooltip, lowMP %counting%, 1,1
}
tooltip,
settimer, aa, on
}
return
mmpp:
WinWaitActive, Aurora Blade
PixelGetColor, colorm, %ck8x%, %ck8y%
if colorm != %Mcolor%
{
counting = 60
tooltip, lowMP, 1,1
settimer, aa, off
loop 20
{
sleep 1000
counting--
tooltip, lowHP %counting%, 1,1
}
click %ck8bx%,%ck8by%
loop 40
{
sleep 1000
counting--
tooltip, lowMP %counting%, 1,1
}
tooltip,
settimer, aa, on
}
return
^space::
if gc > 1
{
gc = 0
Gui 2: Destroy
}
else
{
gc = 2
Gui 2: color, black
Gui 2: +alwaysontop -Caption
Gui 2: Add, Text, w200 h200 GuiMove, Click Here `&& Drag
Gui 2: show, w20 h150
return
}
return
uiMove:
PostMessage, 0xA1, 2,,, A
sleep 1000
WinActivate, Aurora Blade
return
reset:
settimer, aa, off
settimer, hhpp, off
settimer, mmpp, off
send {f5}
sleep 2000
send {enter}
sleep 5000
settimer, aa, on
settimer, hhpp, on
settimer, mmpp, on
Return
^q::pause
#Persistent