lua或c怎么用数组写下列函数

x_mhz4s ,y_mhz4s = findColorInRegionFuzzy(0xFFFFFF, 90, 469,712 , 469,712 ); 
x_mhz4s2,y_mhz4s2 = findColorInRegionFuzzy(0xFFFFFF, 90, 469,725 , 469,725 );
x_mhz4s3,y_mhz4s3 = findColorInRegionFuzzy(0xA5AAA5, 80, 470,713 , 470,713 ); 
x_mhz4s4,y_mhz4s4 = findColorInRegionFuzzy(0xA5AAA5, 80, 470,723 , 470,723 );
x_mhz4s5,y_mhz4s5 = findColorInRegionFuzzy(0xA5A6A5, 80, 470,725 , 470,725 )
------------------------------------
findColorInRegionFuzzy为找单点色函数
--------------------------------
if x_mhz4s~= -1 and x_mhz4s2 ~= -1 and x_mhz4s3 ~=-1 and x_mhz4s4 and x_mhz4s5 ~=-1 then
click( 419,728 ) --
mSleep(1500) --等待1500毫秒
end
end

慕村225694
浏览 706回答 1
1回答

qq_笑_17

data=( 0xFFFFFF,90,469,712 , 469,712 ,0xFFFFFF, 90, 469,725 , 469,725,0xA5AAA5, 80, 470,713 , 470,713 ,0xA5AAA5, 80, 470,723 , 470,723 ,0xA5A6A5, 80, 470,725 , 470,725 }--你要的数组function bingyuan3()local long=#data --数组的长度for i=1,long-5,6 dox = (findColorInRegionFuzzy(data[i],data[i+1],data[i+2],data[i+3],data[i+4],data[i+5])) ~=1 and xendif x thenclick( 419,728 )mSleep(1500) --等待1500毫秒endend
打开App,查看更多内容
随时随地看视频慕课网APP