level 7
xiaoqiong443
楼主
function createUI()
showLoopSetting(true)
end
-- 脚本执行入口
function main()
touchClick(200,500)--点击
sleep(3000) -- 停顿
touchClick(200,500) --点击
local r,g,b = getColorRGB(270,590) -- 取RGB值
--toast(r..g..b)
--log(r.. g.. b)
if 0<b<100 then --绿色
repeat
local r,g,b = getColorRGB(360,588)
until b~=255
touchClick(200,500)
elseif r<100 then --蓝色
repeat
local r,g,b = getColorRGB(266,688)
until b~=255
touchClick(200,500)
elseif g<100 then --紫色
repeat
local r,g,b = getColorRGB(175,588)
until b~=255
touchClick(200,500)
else --黄色
repeat
local r,g,b = getColorRGB(266,492)
until b~=255
touchClick(200,500)
end
end
2015年08月04日 12点08分
1
showLoopSetting(true)
end
-- 脚本执行入口
function main()
touchClick(200,500)--点击
sleep(3000) -- 停顿
touchClick(200,500) --点击
local r,g,b = getColorRGB(270,590) -- 取RGB值
--toast(r..g..b)
--log(r.. g.. b)
if 0<b<100 then --绿色
repeat
local r,g,b = getColorRGB(360,588)
until b~=255
touchClick(200,500)
elseif r<100 then --蓝色
repeat
local r,g,b = getColorRGB(266,688)
until b~=255
touchClick(200,500)
elseif g<100 then --紫色
repeat
local r,g,b = getColorRGB(175,588)
until b~=255
touchClick(200,500)
else --黄色
repeat
local r,g,b = getColorRGB(266,492)
until b~=255
touchClick(200,500)
end
end