UC刘兰奇极速版制动刷金币

auto.waitFor();
threads.start(function () {
	sleep(5000)
	click(850, 1420)
})
requestScreenCapture();
console.show();
var Maid = require("./Maid.js");
var maid = new Maid();
var appName = "UC浏览器极速版";
var num = 30;
maid.launchApp(appName);
maid.sleep2(10);
maid.yhclick("任务", 2000, 928, 2083, 1016, 2171);
maid.sleep2(3);
swipe(500, 900, 500, 300, 300);
maid.sleep2(2);
for (var j = 0; j < num; j++) {
	//click(950, 1700); //看广告赚钱
	let return_image_array = ["./Image/UC浏览器极速版/看广告1.png"]
	let ad_area_coordinate = [0, 0, device.width, device.height * 0.55]
	let threshold = 0.8
	if (clickAreaForFindImage(return_image_array, ad_area_coordinate, threshold)) {
	}
	//maid.sleep2(60);

	var i = 1;
	while (true) {
		console.log(i + "秒后可领取...");
		if (i > 15) {
			if (text("关闭广告").findOne(1000)) {
				break;
			} else if (text("| 跳过").findOne(1000)) {
				break;
			}
			if(i>30){
				click(975, 120); //关闭
				break;
			}
		}
		sleep(1000);
		i++;
	}

	if (text("放弃奖励").findOne(1000)) {
		maid.clickTextCenter("继续观看");
		var i = 30;
		while (true) {
			console.log(i + "秒后可领取...");
			if (i < 15) {
				if (text("关闭广告").findOne(1000)) {
					break;
				} else if (text("| 跳过").findOne(1000)) {
					break;
				}
			}
			sleep(1000);
			i--;
		}
	}

	if (text("放弃领奖机会").findOne(1000)) {
		maid.clickTextCenter("放弃领奖机会");
	} else if (text("拒绝").findOne(1000)) {
		maid.clickTextCenter("拒绝");
		click(975, 120); //关闭
	} else if (text("取消").findOne(1000)) {
		maid.clickTextCenter("取消");
	} else if (text("关闭广告").findOne(1000)) {
		maid.clickTextCenter("关闭广告");
	} else if (text("| 跳过").findOne(1000)) {
		maid.clickTextCenter("| 跳过");
	} else if (text("关闭").findOne(1000)) {
		maid.clickTextCenter("关闭");
	} else if (text("放弃奖励").findOne(1000)) {
		maid.clickTextCenter("放弃奖励");
	} else if (text("关闭,按钮").findOne(1000)) {
		maid.clickTextCenter("关闭,按钮");
	} else if (text("反馈").findOne(1000)) {
		click(975, 180);
	} else {
		click(975, 120); //关闭
	}
	maid.sleep2(1);
	click(500, 1280);
	maid.sleep2(1);
}

/**
 * 找图,找到并点击
 * @param {可以是数组也可以是字符串,传输数组可以多次找图知道找到为止} img_path_array 
 * @param {找图区域,默认是全屏找图,该参数可以不传输} area_region 
 * @param {相似度,默认是0.8,可以不传输} threshold 
 * @returns true表示执行成功Flase表示失败
 */
function clickAreaForFindImage(img_path_array, area_region, threshold, is_continue) {
	try {
		area_region = area_region || [0, 0, device.width, device.height] //默认的找图区域 全屏找图 前2位是坐标 后面是长度和宽度   千万别理解成是坐标
		//threshold = threshold || 0.8 // 默认的相识度0.8
		is_continue = is_continue || false
		if (img_path_array instanceof Array) {
			let arrayLength = img_path_array.length
			for (let i = 0; i < arrayLength; i++) {
				//toastLog("正在进行第" + (i + 1) + "次找图...")
				img_path = img_path_array[i] //小图地址可判断是否存在
				if (!files.exists(img_path)) {
					toastLog(img_path + "文件不存在因此跳过")
					continue
				}
				var little_image = images.read(img_path) //小图
				var find_result_bounds = findImage(
					captureScreen(), little_image, {
					region: area_region,
					threshold: threshold
				});
				if (find_result_bounds) {
					toastLog(img_path + "图找到,准备点击坐标:" + find_result_bounds)
					click(find_result_bounds.x, find_result_bounds.y)
					return true
				} else {
					//toastLog(img_path+"小图存在但是在大图中未找到图片进入下一次循环...")
				}
			}
			return false
		}
		if (typeof (img_path_array) == "string") {
			img_path = img_path_array//小图地址可判断是否存在
			if (!files.exists(img_path)) {
				toastLog(img_path + "文件不存在因此跳过")
				return false
			}
			var little_image = images.read(img_path) //小图
			var find_result_bounds = findImage(
				captureScreen(), little_image, {
				region: area_region,
				threshold: threshold
			});
			if (find_result_bounds) {
				toastLog(img_path + "图找到,准备点击坐标:" + find_result_bounds)
				click(find_result_bounds.x, find_result_bounds.y)
				return true
			} else {
				//toastLog(img_path + "小图存在但是在大图中未找到图片")
				return false
			}
		}
	} catch (error) {
		toastLog("clickAreaForFindImage方法出现错误:" + error)
		return false;
	}
}


function findAreaForFindImage(img_path_array, area_region, threshold, is_continue) {
	try {
		area_region = area_region || [0, 0, device.width, device.height] //默认的找图区域 全屏找图 前2位是坐标 后面是长度和宽度   千万别理解成是坐标
		//threshold = threshold || 0.8 // 默认的相识度0.8
		is_continue = is_continue || false
		if (img_path_array instanceof Array) {
			let arrayLength = img_path_array.length
			for (let i = 0; i < arrayLength; i++) {
				//toastLog("正在进行第" + (i + 1) + "次找图...")
				img_path = img_path_array[i] //小图地址可判断是否存在
				if (!files.exists(img_path)) {
					toastLog(img_path + "文件不存在因此跳过")
					continue
				}
				var little_image = images.read(img_path) //小图
				var find_result_bounds = findImage(
					captureScreen(), little_image, {
					region: area_region,
					threshold: threshold
				});
				if (find_result_bounds) {
					//toastLog(img_path + "图找到,准备点击坐标:" + find_result_bounds)
					//click(find_result_bounds.x, find_result_bounds.y)
					return true
				} else {
					//toastLog(img_path+"小图存在但是在大图中未找到图片进入下一次循环...")
				}
			}
			return false
		}
		if (typeof (img_path_array) == "string") {
			img_path = img_path_array//小图地址可判断是否存在
			if (!files.exists(img_path)) {
				toastLog(img_path + "文件不存在因此跳过")
				return false
			}
			var little_image = images.read(img_path) //小图
			var find_result_bounds = findImage(
				captureScreen(), little_image, {
				region: area_region,
				threshold: threshold
			});
			if (find_result_bounds) {
				//toastLog(img_path + "图找到,准备点击坐标:" + find_result_bounds)
				//click(find_result_bounds.x, find_result_bounds.y)
				return true
			} else {
				//toastLog(img_path + "小图存在但是在大图中未找到图片")
				return false
			}
		}
	} catch (error) {
		toastLog("clickAreaForFindImage方法出现错误:" + error)
		return false;
	}
}

有没有大神可以优化一下。。。

UC刘兰奇极速版制动刷金币

浏览器是我们上网冲浪的时候必不可少的东西,但是因为时下越来越多的浏览器出现在我们生活中,所以一些平台为了能获取更多的客户,纷纷出现了极速版,以刷金币赚现金来吸引客户,便是如此,一起看看每天刷元宝有上限吗。

每天刷元宝有上限吗

每天刷元宝没有上限。

是当下比较受大家喜爱的一款赚钱软件,就使用过的友友反馈每天刷元宝没有上限,不过多少确是因人而论的。开始的7-10天优惠非常大,有时间的可以薅一下羊毛 ,操作好的话一天可以赚个三十五十甚至小一百块钱。

每天能刷多少元宝

对于每天能刷多少元宝当下并没有准确的答案,毕竟每个人的时间是不一样的。其实就是通过平台看广告,然后给你分成,建议是抓着一个平台作死地薅几天,达到提现标准就体现,然后就可以不管了。换一个继续,仅仅是看视频是没多少钱的,一定是看广告,一般广告时间在20 ~ 30秒左右。

怎么快速刷元宝

怎么快速刷元宝是当下很多友友在玩的时候都有的疑问,就以往的数据来看要想获得更多的元宝,UC浏览器每天签到+完成新手任务+完成每日任务+看新闻+收徒等都可以获得大量元宝,元宝需要自己手动兑换成零钱。

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值