SCREEN_RESOLUTION="640x960";
SCREEN_COLOR_BITS=32;
-- 主入口
function main()
while true do
x, y = findColorInRegionFuzzy(0x00A0FD, 100, 312, 731, 331, 741);
--新闻点我知道了
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xFE5A02, 90, 251, 900, 268, 917);
---找无尽模式
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xFFAB00, 90, 311, 885, 326, 902);
--找出击
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0x0079DC, 90, 201, 548, 220, 567);
--找返回
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0x0079DB, 100, 168, 849, 180, 867);
--找继续
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xC76C00, 90, 313, 710, 324, 726);
--找领取宝箱
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(1000);
end
end
这是我在贴吧里找的脚本,目前使用良好,但是有个小不足,晚上挂机到3点出奖励时没有自动领取而一直卡在领取界面,我希望在脚本中增加检测是否有奖励,确定领取功能。希望大神帮我改进下,万分感谢!附图

SCREEN_COLOR_BITS=32;
-- 主入口
function main()
while true do
x, y = findColorInRegionFuzzy(0x00A0FD, 100, 312, 731, 331, 741);
--新闻点我知道了
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xFE5A02, 90, 251, 900, 268, 917);
---找无尽模式
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xFFAB00, 90, 311, 885, 326, 902);
--找出击
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0x0079DC, 90, 201, 548, 220, 567);
--找返回
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0x0079DB, 100, 168, 849, 180, 867);
--找继续
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xC76C00, 90, 313, 710, 324, 726);
--找领取宝箱
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(1000);
end
end
这是我在贴吧里找的脚本,目前使用良好,但是有个小不足,晚上挂机到3点出奖励时没有自动领取而一直卡在领取界面,我希望在脚本中增加检测是否有奖励,确定领取功能。希望大神帮我改进下,万分感谢!附图

