安卓自动领水果福气

第一步:安装触动精灵、打开悬浮窗

安卓手机没 root

需要先安装一个 VMOS

安卓手机已经 root 或安装 VMOS

  1. 安装触动精灵安卓版(点击到官网下载 APK
  2. 打开触动精灵,给 root 权限、悬浮窗权限
  3. 触动精灵 - 我的账号 - 偏好设置 - 打开悬浮窗

 

没有安卓手机

如果你只有 iPhone,也可以用电脑实现挂机

  1. 下载安装触动精灵电脑版(雷电模拟器)
  2. 打开触动精灵,给权限
  3. 触动精灵 - 我的账号 - 偏好设置 - 打开悬浮窗

第二步:把脚本放到触动精灵里

方法一:导入文件

1. 下载脚本文件

链接:https://pan.baidu.com/s/1ZSJUS_GoVrZHllffGLKEjA
提取码:a3sl

2. 触动精灵左上角 - 导入脚本 - 选择 main.lua

 

 

方法二:新建脚本

1. 复制下面的脚本源码

  1 -- Create By TouchSpriteStudio on 11:14:10
  2 -- Copyright © TouchSpriteStudio . All rights reserved.
  3 
  4 --local ts = require"ts"
  5 require"TSLib"
  6 w,h = getScreenSize()
  7 fms = 1000
  8 --1080P 15 号字高 70,宽 40
  9 --iPhone 6 15 号字高 40,宽 30
 10 --iPhone 6P 15 号字高 60,宽 50
 11 if w == 1080 and h == 1920 then
 12     lx0,ly0,rx0,ry0 = 10,220,1070,300
 13     lx,ly,rx,ry = 0,0,1050,70
 14 elseif w == 720 and h == 1280 then
 15     lx0,ly0,rx0,ry0 = 10,120,710,200
 16     lx,ly,rx,ry = 0,0,700,80
 17 elseif w == 640 and h == 1136 then
 18     lx0,ly0,rx0,ry0 = 10,130,630,180
 19     lx,ly,rx,ry = 0,0,620,40
 20 elseif w == 1242 and h == 2208 then
 21     lx0,ly0,rx0,ry0 = 10,200,1232,260
 22     lx,ly,rx,ry = 0,0,1222,60
 23 else
 24     toast("脚本尚未完全适配您的手机分辨率,不保证运行效果")
 25     mSleep(3000)
 26 end
 27 fwShowWnd("banner",lx0,ly0,rx0,ry0,1);
 28 fwShowTextView("banner","text1","开启浮动窗口","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.5);
 29 --显示一个文字视图
 30 mSleep(500);
 31 
 32 UINew("种水果","立即运行","立即退出","tmfruit.dat",0,30)
 33 UILabel("使用须知",20,"center","230,50,92")
 34 UILabel("1. 需要手动进入活动页面脚本才生效",16,"left","0,0,0")
 35 UILabel("2. 任务按照从上到下依次排序,可屏蔽部分任务",16,"left","0,0,0")
 36 UILabel("3. 不支持分享好友任务",16,"left","0,0,0")
 37 UILabel("4. 目前已兼容分辨率:",16,"left","0,0,0")
 38 UILabel(" 安卓 1920x1080",16,"left","0,0,0")
 39 UILabel("选择任务",20,"center","230,50,92")
 40 UICheck("task2,task3,task4,task5,task6","任务二,任务三,任务四,任务五,任务六","1@2@3@4")
 41 UIShow()
 42 
 43 function window()
 44     ss = 30
 45     for i = 1,30 do
 46         ss = ss-1
 47         fwShowTextView("banner","text1","倒计时 "..ss,"center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.5);
 48         mSleep(fms)
 49     end
 50 end
 51 
 52 t0 = os.time()
 53 fwShowTextView("banner","text1",t0,"center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.5);
 54 
 55 function finish()
 56     t1 = os.time()
 57     log(t1)
 58     if t1-t0 >= 30 then
 59         fwShowTextView("banner","text1","倒计时完成,已获得福气","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
 60         mSleep(fms)
 61         log("叉叉")
 62         if w == 640 and h == 1136 then
 63             multiColTap({
 64                     {   44,   70, 0xffffff},
 65                     {   35,   79, 0xffffff},
 66                     {   42,   95, 0xffffff},
 67                     {   38,   89, 0xff6483},
 68                     {   31,   83, 0xffffff},
 69                 })
 70             multiColTap({
 71                     {  591,   74, 0xf9eff2},
 72                     {  585,   72, 0xfaf0f3},
 73                     {  587,   71, 0xf5eef0},
 74                     {  587,   69, 0xfdfbfc},
 75                     {  586,   69, 0xfdf9fa},
 76                 })--关闭
 77             multiColTap({
 78                     {   31,   64, 0xf9f9f9},
 79                     {   42,   78, 0xf9f9f9},
 80                     {   38,   83, 0xf9f9f9},
 81                     {   38,   91, 0x444444},
 82                     {   38,   76, 0x444444},
 83                     {   31,   83, 0x444444},
 84                 })--白底左上角<
 85             multiColTap({
 86                     {   37,   67, 0xff4151},
 87                     {   43,   83, 0xff384e},
 88                     {   39,  100, 0xff304a},
 89                     {   43,   95, 0xffffff},
 90                     {   41,   74, 0xffffff},
 91                     {   32,   83, 0xffffff},
 92                 })--红底左上角<
 93             multiColTap({
 94                     {   44,   77, 0xda1b39},
 95                     {   27,   74, 0xda1b39},
 96                     {   30,   91, 0xd71a3a},
 97                     {   39,   92, 0xffffff},
 98                     {   39,   75, 0xffffff},
 99                     {   31,   83, 0xffffff},
100                 })--红底左上角<
101         elseif w == 1242 and h == 2208 then
102             multiColTap({{   69,  103, 0xffffff},{   62,  109, 0xffffff},{   64,  144, 0xffffff},{   55,  135, 0xffffff},{   46,  126, 0xffffff},})
103         elseif w == 1080 and h == 1920 then
104             os.execute("input keyevent KEYCODE_BACK")
105             mSleep(1000)
106         elseif w == 720 and h == 1280 then
107             os.execute("input keyevent KEYCODE_BACK")
108             mSleep(1000)
109         else
110             toast("暂不支持您的手机分辨率")
111             mSleep(3000)
112         end
113         t0 = os.time()
114     end
115 end
116 
117 if w == 1080 and h == 1920 then
118     fwShowTextView("banner","text1","分辨率:1920x1080","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.5);
119     mSleep(fms)
120     while true do
121         multiColTap({
122                 {  953, 1625, 0xe10600},
123                 {  975, 1576, 0xffeab3},
124                 {  982, 1618, 0xcf1705},
125                 { 1066, 1698, 0xe30100},
126             })--右下角入口
127         x,y = findMultiColorInRegionFuzzy( 0xfd613f, "63|-13|0xff0036,-99|-18|0xfedfdf,72|-7|0xff0036", 90, 783, 473, 1001, 599)--签到
128         if x ~= -1 then
129             fwShowTextView("banner","text1","签到","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
130             mSleep(fms)
131             tap(x,y)
132             log("签到")
133         end
134         if task2 == "任务二" then
135             x,y = findMultiColorInRegionFuzzy( 0xff6247, "121|58|0xfc4740,62|-20|0xffffff,69|81|0xffffff", 90, 783, 853, 991, 975)--2
136             if x ~= -1 then
137                 fwShowTextView("banner","text1","点击第二个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
138                 mSleep(fms)
139                 tap(x,y)
140                 t0 = os.time()
141                 window()
142                 log("点击第二个任务")
143                 finish()
144             end
145         end
146         if task3 == "任务三" then
147             x,y = findMultiColorInRegionFuzzy( 0xfd613f, "64|59|0xfc4740,-77|-6|0xffffff,109|68|0xffffff", 90, 771, 1045, 998, 1151)--3
148             if x ~= -1 then
149                 fwShowTextView("banner","text1","点击第三个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
150                 mSleep(fms)
151                 tap(x,y)
152                 t0 = os.time()
153                 window()
154                 log("点击第三个任务")
155                 finish()
156             end
157         end
158         if task4 == "任务四" then
159             x,y = findMultiColorInRegionFuzzy( 0xfe6240, "50|60|0xfb483e,-87|0|0xffffff,97|73|0xffffff", 80, 777, 1240, 987, 1332)--4
160             if x ~= -1 then
161                 fwShowTextView("banner","text1","点击第四个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
162                 mSleep(fms)
163                 tap(x,y)
164                 t0 = os.time()
165                 window()
166                 log("点击第四个任务")
167                 finish()
168             end
169         end
170         if task5 == "任务五" then
171             x,y = findMultiColorInRegionFuzzy( 0xfe6240, "4|61|0xfc4740,-90|1|0xffffff,103|66|0xffffff", 90, 773, 1426, 993, 1520)--5
172             if x ~= -1 then
173                 fwShowTextView("banner","text1","点击第五个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
174                 mSleep(fms)
175                 tap(x,y)
176                 t0 = os.time()
177                 window()
178                 log("点击第五个任务")
179                 finish()
180             end
181         end
182         if task6 == "任务六" then
183             x,y = findMultiColorInRegionFuzzy( 0xfe6240, "73|60|0xfc4740,-70|2|0xffffff,118|66|0xffffff", 80, 780, 1623, 982, 1703)--6
184             if x ~= -1 then
185                 fwShowTextView("banner","text1","点击第六个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
186                 mSleep(fms)
187                 tap(x,y)
188                 t0 = os.time()
189                 window()
190                 log("点击第六个任务")
191                 finish()
192             end
193         end
194     end
195 
196 else
197     toast("脚本尚未完全适配您的手机分辨率,不保证运行效果")
198     mSleep(3000)
199     setScreenScale(true, 1080, 1920)
200     fwShowTextView("banner","text1","分辨率:1920x1080","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.5);
201     mSleep(fms)
202     while true do
203 
204         while true do
205             multiColTap({
206                     {  953, 1625, 0xe10600},
207                     {  975, 1576, 0xffeab3},
208                     {  982, 1618, 0xcf1705},
209                     { 1066, 1698, 0xe30100},
210                 })--右下角入口
211             x,y = findMultiColorInRegionFuzzy( 0xfd613f, "63|-13|0xff0036,-99|-18|0xfedfdf,72|-7|0xff0036", 90, 783, 473, 1001, 599)--签到
212             if x ~= -1 then
213                 fwShowTextView("banner","text1","签到","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
214                 mSleep(fms)
215                 tap(x,y)
216                 log("签到")
217             end
218             if task2 == "任务二" then
219                 x,y = findMultiColorInRegionFuzzy( 0xff6247, "121|58|0xfc4740,62|-20|0xffffff,69|81|0xffffff", 90, 783, 853, 991, 975)--2
220                 if x ~= -1 then
221                     fwShowTextView("banner","text1","点击第二个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
222                     mSleep(fms)
223                     tap(x,y)
224                     t0 = os.time()
225                     window()
226                     log("点击第二个任务")
227                     finish()
228                 end
229             end
230             if task3 == "任务三" then
231                 x,y = findMultiColorInRegionFuzzy( 0xfd613f, "64|59|0xfc4740,-77|-6|0xffffff,109|68|0xffffff", 90, 771, 1045, 998, 1151)--3
232                 if x ~= -1 then
233                     fwShowTextView("banner","text1","点击第三个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
234                     mSleep(fms)
235                     tap(x,y)
236                     t0 = os.time()
237                     window()
238                     log("点击第三个任务")
239                     finish()
240                 end
241             end
242             if task4 == "任务四" then
243                 x,y = findMultiColorInRegionFuzzy( 0xfe6240, "50|60|0xfb483e,-87|0|0xffffff,97|73|0xffffff", 80, 777, 1240, 987, 1332)--4
244                 if x ~= -1 then
245                     fwShowTextView("banner","text1","点击第四个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
246                     mSleep(fms)
247                     tap(x,y)
248                     t0 = os.time()
249                     window()
250                     log("点击第四个任务")
251                     finish()
252                 end
253             end
254             if task5 == "任务五" then
255                 x,y = findMultiColorInRegionFuzzy( 0xfe6240, "4|61|0xfc4740,-90|1|0xffffff,103|66|0xffffff", 90, 773, 1426, 993, 1520)--5
256                 if x ~= -1 then
257                     fwShowTextView("banner","text1","点击第五个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
258                     mSleep(fms)
259                     tap(x,y)
260                     t0 = os.time()
261                     window()
262                     log("点击第五个任务")
263                     finish()
264                 end
265             end
266             if task6 == "任务六" then
267                 x,y = findMultiColorInRegionFuzzy( 0xfe6240, "73|60|0xfc4740,-70|2|0xffffff,118|66|0xffffff", 80, 780, 1623, 982, 1703)--6
268                 if x ~= -1 then
269                     fwShowTextView("banner","text1","点击第六个任务","center","FFFFFF","000000",15,0,lx,ly,rx,ry,0.6);
270                     mSleep(fms)
271                     tap(x,y)
272                     t0 = os.time()
273                     window()
274                     log("点击第六个任务")
275                     finish()
276                 end
277             end
278         end
279     end
280     setScreenScale(false)
281 end
查看完整源码

2. 触动精灵左上角 - 新建脚本 - 粘贴

方法三:下载脚本(需要触动授权)

触动精灵 - 找脚本 - 搜索 - 水果 - 下载

 

 

第三步:运行脚本

  1. 在触动精灵“我的脚本”界面勾选上一步添加的脚本
  2. 打开福气水果活动界面
  3. 点击悬浮窗
  4. 运行
posted @ 2020-01-10 14:37  丸子233  阅读(815)  评论(0编辑  收藏  举报