马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
Dim intX,intY
Import "zm.luae" //导入插件,只需执行一次
zm.Init //初始化插件,只需执行一次
Dim 顾客,推销,顾客1,顾客2,顾客3,顾客4,顾客5,顾客6,顾客7,顾客8,顾客9,顾客10,顾客11,顾客12,顾客13,顾客14,顾客15,推销1,推销2,推销3,推销4,推销5,推销6,推销7,推销8,推销9,推销10,推销11,推销12
顾客1 = {"A6B8BE","3|1|D9EBF2,5|2|37324F,-7|4|849296,-3|4|D0E4EC,-3|8|9DB4BF,1|10|3C304B"}
顾客2 = {"373350","1|0|BFC5CB,3|0|D7E9EE,0|11|373350,1|10|BFC5CB,5|10|C2D7DC,0|13|373350,1|13|BFC5CB,8|16|909EA4"}
顾客3 = {"37334F","1|0|EBF6FA,3|1|D5E8EE,0|8|37334F,2|8|DBECF5,4|8|AEC0C8,22|15|899292,22|16|A2B5BA,22|18|3C304B"}
顾客4 = {"788089","4|3|D5E7EE,7|5|EFF7F8,8|5|37324F,4|32|B4C6CD,1|36|98A9AF,-19|42|E0ECF4,-22|48|333450"}
顾客5 = {"37324F","9|-1|D7E8EE,53|0|D7E8EF,56|0|37324F,0|29|37324F,5|31|A2B4BA,6|38|9DB2BF,7|40|3E324E"}
顾客6 = {"474759","55|0|4A4C5B,3|3|D2E6EE,-1|37|37324F,7|40|9DB2BF,26|40|D7E8EF,32|40|99B2BC,33|37|7D888B"}
顾客7 = {"E4F1F8","3|0|AABCC2,51|-1|ABBEC4,52|-1|D5E7EF,54|-1|E9F5F8,56|-1|33334F"}
顾客8 = {"8E9AA1","2|0|8E9AA1,4|0|9BAEB3,5|0|D0E5ED,9|0|EDF7F8,9|2|9DAFBF,9|4|363551,-13|5|E7F3F8,-11|7|99B3BB"}
顾客9 = {"A4B7BD","2|0|D5E7EF,4|0|37324F,-1|2|9BAEB4,1|2|D2E6EE,3|2|DEEEF3,5|2|34334F,0|5|9DB0C0,1|5|9DB0C0"}
顾客10 = {"E0EEF2", "2|0|D9EAF0,35|0|E2EEF5,36|0|F5F5F7,-2|22|3E3A53,1|22|AABDC3,34|23|ABBEC4,37|23|37324F,17|31|C2D5DB,17|33|38334E"}
顾客11 = {"ABAEBA","3|1|CDE0E7,1|5|D2E4E8,53|11|D7EAF1,54|11|E7F4F7,56|11|35334F,26|42|E2EBF3,26|43|E7F6FA,26|45|96ABBA"}
顾客12 = {"D7E9EF","2|0|D9EBF2,4|0|FEFFFF,5|0|5E5F6D,-28|38|80898F,-28|40|9DB4BF,-26|42|A2B4BF,-24|44|A2B4C4,-22|44|A4B5BD,-22|45|91A2B1"}
顾客13 = {"3A3751","1|0|F7F8F9,2|0|E2EFF6,3|0|D9EBF1,54|7|D9EDF2,55|7|EDF7F8,56|7|37324F"}
顾客14 = {"93A4A9","1|0|B2C5CC,3|0|D2E6EE,4|0|D7E8F0,6|0|EBF7F8,1|5|9DB1BF,2|5|9DB1BF,4|5|9FB0C0,4|7|36334E"}
顾客15 = {"D7DCE4","0|2|D9EBF1,1|2|D5E7EF,-3|4|37324F,-2|4|7E808C,-1|4|E2F0F6,0|4|D7E9EE,1|4|D2E7EE,2|4|D2E6EE"}
推销1 = {"6CE4EE","0|1|91ECF6,0|2|56B1BF,5|3|5DAEBF,6|4|37324F,23|4|84E6F3,23|5|90E6F2,23|7|53ABBB,45|3|5DAEBF,45|5|38334F"}
推销2 = {"6CE4EE","2|0|6CE4EE,0|1|6CE4EE,35|2|6CE4EE,36|2|7CE7F1,37|2|37334F,1|25|6CE4EE,17|29|8EE6EE,17|30|70C8D1,17|31|59ABBC"}
推销3 = {"6CE4EE","1|0|6CE4EE,2|0|6CE4EE,45|1|6CE4EE,47|1|7EE7F1,21|38|96F0F9,23|38|5DB0BF,21|40|59ABBC"}
推销4 = {"6CE4EE","1|2|6CE4EE,51|1|7FE8F2,52|1|729FA9,-3|29|A9F2F8,-1|29|6CE4EE,24|40|7AE7EF,24|43|59ABBC"}
推销5 = {"567B85","2|0|6CE4EE,4|0|6CE4EE,0|4|5E808C,2|4|6CE4EE,0|6|5E808C,2|6|6CE4EE,27|41|82E5ED"}
推销6 = {"3C2F4B", "1|1|77E6F1,3|2|6CE4EE,6|2|6CE4EE,2|4|6CE4EE,54|14|A7F3FA,55|14|37324F,26|45|88E0E8,26|46|5AAFBA"}
推销7 = {"84DBDF","0|2|6CE5EF,52|3|6CE3EE,53|5|96EEF7,54|5|37324F,24|42|7AE6F0,24|43|93EDF6,24|44|62BAC2,24|45|59B0BF,26|47|3D3753"}
推销8 = {"28404F","1|0|8CEFEF,2|0|71E5F0,4|0|6CE4EE,53|8|6CE4EE,55|8|729FA9,56|8|37324F"}
推销9 = {"95EDF7","0|1|6CE4EE,1|1|6CE4EE,4|1|6CE4EE,7|1|91F5F5,7|4|7FE8F2,8|4|729FA9,9|4|37324F,9|5|37324F"}
推销10 = {"91F5F5","2|1|6CE4EE,4|1|6CE4EE,-2|4|37324F,-1|4|A9F2F8,1|4|6CE4EE,2|4|6CE4EE,3|4|6CE4EE,4|4|6CE4EE"}
推销11 = {"52ACB4","0|2|6CE4EE,2|2|6CE4EE,4|2|7EE8F1,5|2|709FA8,6|2|37324F,0|5|91EEF6,1|5|91ECF5,2|5|95EFF7"}
推销12 = {"A9F2F8","0|1|A9F2F8,0|3|91E3EA,2|3|6BE4EE,2|4|72E6EE,3|4|6CE4EE,2|6|56B1BF,3|8|3D324E,5|8|3D324E"}
For 100
顾客 = zm.FindMultiColor(77,573,611,809,顾客1,顾客2,顾客3,顾客4,顾客5,顾客6,顾客7,顾客8,顾客9,顾客10,顾客11,顾客12,顾客13,顾客14,顾客15,0.9,2000, "中心",True,"显示")
If 顾客 Then
zm.Delay 1000, 2000
FindMultiColor 207,1144,301,1235,"2947F2","2|0|1F2F5F,6|0|258BDC,10|0|C6F9FF,14|0|95F1FF,20|25|2384D8,21|29|2337BD,25|29|2542EE,26|29|2542EE,28|29|2542EE",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
TracePrint "误点"
ShowMessage"误点", 500,275,11
zm.Delay 500, 1000
RandomTap intX, intY, 5
zm.Delay 500, 1000
End If
zm.Delay 1000, 2000
FindMultiColor 382,940,632,1010,"37CE90","13|1|347D71,22|2|2388EA,30|6|1F60E0,37|9|30B790,43|13|4FFFA7,54|25|30B790,24|37|1FD874,27|41|233E30",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
ShowMessage "卖",500,275,11
zm.Delay(1500,2000)
RandomTap 542,981,5
zm.Delay(1500,2000)
End If
zm.Delay 1000, 2000
FindMultiColor 611,244,691,325,"7ACCFF","4|4|2A2B98,7|4|1E1E1E,9|4|968F8F,14|4|506FC0,18|4|9DDCE9,39|21|73A8FD,39|24|25266D,39|28|232466,39|36|D2D3D3",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
TracePrint"交易完毕"
ShowMessage "交易完毕", 500, 275, 11
End If
Else
TracePrint "没有找到顾客"
ShowMessage "没有找到顾客",500,275,11
End If
Next
来个大神救救我吧。。用手机助手调试运行很正常会点击顾客。。但是单独用模拟器里面的按键精灵去运行。。他就不会点了。。能详细教教吗?
|