#[HOTKEY]HOME
function main
SetInputMode(3)
while true
GetActiveWindowXY(WinX0, WinY0)
if not CheckColor(485, 48, Color(120, 24, 27), 10) THEN
a()
else
Wait(5000)
if not CheckColor(510, 50, Color(30, 32, 27), 10) then
A()
end if
END IF
if FindImageEx("寶箱.sel", Color(10, 10, 10), 278, 223, 742, 555, true, FoundX, FoundY) then
MouseRightClick(FoundX+2, FoundY+10)
end if
if FindImageEx("寶箱.Sel", Color(10, 10, 10), 80, 185, 835, 579, true, FoundX, FoundY) then
MouseRightClick(FoundX+2, FoundY+10)
end if
if not CheckColor(WinX0+225, WinY0+35, Color(225, 7, 5), 10) then
KeyPress("4")
Wait(500)
end if
if not CheckColor(WinX0+225, WinY0+35, Color(225, 7, 5), 10) then
KeyPress("8")
Wait(500)
end if
if not CheckColor(WinX0+225, WinY0+35, Color(225, 7, 5), 10) then
KeyPress("9")
Wait(500)
end if
if not FindImageEx("物理提升.sel", Color(30, 30, 30), 671, 34, 828, 71, true, FoundX, FoundY) then
KeyPress("0")
end if
if not CheckColor(122, 82, Color(22, 80, 148), 10) then
KeyPress("5")
Wait(500)
end if
if not CheckColor(122, 82, Color(22, 80, 148), 10) then
KeyPress("6")
Wait(500)
end if
if not CheckColor(122, 82, Color(22, 80, 148), 10) then
KeyPress("7")
Wait(500)
end if
wend
end function
FUNCTION A
KeyPress("`")
Wait(200)
KeyPress("F1")
Wait(200)
KeyPress("1")
Wait(100)
KeyPress("2")
Wait(200)
KeyPress("F2")
Wait(200)
KeyPress("3")
Wait(100)
end function |