亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

lua或c怎么用數組寫下列函數

lua或c怎么用數組寫下列函數

慕村225694 2019-04-11 06:02:57
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 thenclick( 419,728 ) --mSleep(1500) --等待1500毫秒endend
查看完整描述

1 回答

?
qq_笑_17

TA貢獻1818條經驗 獲得超7個贊

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 do
x = (findColorInRegionFuzzy(data[i],data[i+1],
data[i+2],data[i+3],data[i+4],data[i+5])) ~=1 and x
end

if x then
click( 419,728 )
mSleep(1500) --等待1500毫秒
end
end




查看完整回答
反對 回復 2019-04-12
  • 1 回答
  • 0 關注
  • 741 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號