Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Android4.1.0 to read novels automatically

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to read novels automatically with Android4.1.0". In daily operation, I believe that many people have doubts about how to read novels automatically with Android4.1.0. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to read novels automatically with Android4.1.0". Next, please follow the editor to study!

"ui"; / / # region UIvar rootUrl = "http://114.115.220.1:91";// your own server. Thank you var storaySign =" XiaoShuo0412326@163.com "; var woolStorage = storages.create (storaySign); / / create local storage var storyThread = null;ui.layout (

{/ * drawer * /}

< StoryScreenSileTimes; i++) {toastLog("七猫免费小说滑动" + i + "次" + "总计:" + StoryScreenSileTimes + "次");swipe(device.width * 0.65, device.height * 0.05, device.width * 0.08, device.height * 0.05, 300);let times = parseInt(ScreenSileTimesInterval) * 1000;sleep(times);}} else if (appName == '番茄免费小说') {try {if (className("android.widget.RadioButton").text('书架').exists()) {let bookshelf = className("android.widget.RadioButton").text('书架').findOnce();bookshelf.click();sleep(2000);if (className("android.widget.TextView").text("" + StoryName + "").exists()) {let b = className("android.widget.TextView").text("" + StoryName + "").findOnce().bounds();click(b.centerX(), b.centerY());} else {let booklist = className('android.view.ViewGroup').find();//查找到的所有ViewGroupif (booklist != null) {booklist[1].click();//第一本书的ViewGroup}}}} catch (e) { }sleep(10000);for (var i = 1; i < StoryScreenSileTimes; i++) {toastLog("番茄免费小说滑动" + i + "次" + "总计:" + StoryScreenSileTimes + "次");swipe(device.width * 0.65, device.height * 0.5, device.width * 0.08, device.height * 0.5, 300);let times = parseInt(ScreenSileTimesInterval) * 1000;sleep(times);}} else if (appName == '疯读小说') {if (className("android.widget.TextView").text("" + StoryName + "").exists()) {let b = className("android.widget.TextView").text("" + StoryName + "").findOnce().bounds();click(b.centerX(), b.centerY());} else {let bookList=className("android.view.ViewGroup").find();if(bookList.length!=0){console.warn(bookList.length);bookList[1].click();}}for (var i = 1; i < StoryScreenSileTimes; i++) {toastLog("疯读小说滑动" + i + "次" + "总计:" + StoryScreenSileTimes + "次");swipe(device.width * 0.65, device.height * 0.05, device.width * 0.08, device.height * 0.05, 300);let times = parseInt(ScreenSileTimesInterval) * 1000;sleep(times);}}}/** * 小说签到 * @param {平台名} appName */function sign(appName) {sleep(1000);if (appName == '七猫免费小说') {if (className("android.widget.TextView").text("福利").exists()) {let b = className("android.widget.TextView").text("福利").findOnce().bounds();click(b.centerX(), b.centerY());}sleep(3000);try {if (className("android.view.View").text("签到+20金币").exists()) {console.info("七猫免费小说。福利签到+20金币");className("android.view.View").text("签到+20金币").findOnce().click();recordSignTime(appName);} else if (className("android.view.View").text("已签到").exists()) {toastLog("已签到记录时间");className("android.view.View").text("已签到").findOnce().click();recordSignTime(appName);}if (className("android.view.View").text("立即签到").exists()) {className("android.view.View").text("立即签到").findOnce().click();recordSignTime(appName);}sleep(3000);recordSignTime(appName);//记录时间back();if (className("android.widget.TextView").text("书架").exists()) {let b = className("android.widget.TextView").text("书架").findOnce().bounds();click(b.centerX(), b.centerY());}} catch (e) { }} else if (appName == '番茄免费小说') {if (className("android.widget.RadioButton").text("福利").exists()) {console.log("番茄免费小说,点击福利");className("android.widget.RadioButton").text("福利").findOnce().click();sleep(3000);//福利页面加载很慢所以等一会recordSignTime(appName);if (className("android.widget.RadioButton").text("书架").exists()) {className("android.widget.RadioButton").text("书架").findOnce().click();}else{back();}sleep(2000);}} else if (appName == '疯读小说') {if (className("android.widget.TextView").text("我").exists()) {let b = className("android.widget.TextView").text("我").findOnce().bounds();click(b.centerX(), b.centerY());}sleep(3000);//特别慢得等一会if (className("android.widget.TextView").text("福利中心").exists()) {let b = className("android.widget.TextView").text("福利中心").findOnce().bounds();click(b.centerX(), b.centerY());}sleep(12000);//更慢if (className("android.widget.Button").text("继续").exists()) {let b = className("android.widget.TextView").text("继续").findOnce().click();}sleep(3000);if (className("android.view.View").text("去签到").exists()) {recordSignTime(appName);let b = className("android.view.View").text("去签到").findOnce().click();}recordSignTime(appName);back();if (className("android.widget.TextView").text("书架").exists()) {let b = className("android.widget.TextView").text("书架").findOnce().bounds();click(b.centerX(), b.centerY());}sleep(1000);//慢得等一会}}//#endregion//#region 公共方法/** * 输出Tosat和Info日志 * @param {日志消息} messagge */function toastInfo(message) {toast(message);console.info(getTime() + "" + message);}/** * 输出Tosat和Error日志 * @param {日志消息} messagge */function toastError(message) {toast(message);console.error(getTime() + "" + message);}function toastLog(message) {toast(message);console.log(getTime() + "" + message);}function toastWarn(message) {toast(message);console.warn(getTime() + "" + message);}/** * 记录App签到时间 * @param {App名称} appName */function getSignTime(appName) {let key = appName + storaySign;let value = woolStorage.get(key);return value;}function Color(color) {return android.graphics.Color.parseColor(color);}function GradientDrawable(orientation, color) {var colors = [];color.forEach(color =>

Colors.push (Color (color)); return new android.graphics.drawable.GradientDrawable (android.graphics.drawable.GradientDrawable.Orientation [orientation], colors);} / * * Adolescent window * / function adolescentWindows () {if (text ("I know"). Exists () {text ("I know"). FindOnce (). Click ();} if (text ("got"). Exists ()) {text ("know"). FindOnce (). Click () }} / * record App check-in time * @ param {App name} appName * / function recordSignTime (appName) {let key = appName + storaySign;let value = getDate (); woolStorage.put (key, value);} / * record the time of one run of App * @ param {appName} appName * @ param {this run time} recordTimes * / function appRunTimeRecord (appName, recordTimes) {let key = appName + storaySign + getDate () Var havedRunTimes = woolStorage.get ("" + key + "); let value ="; if (havedRunTimes = = null) {woolStorage.put (key, parseInt (recordTimes));} else {value = parseInt (havedRunTimes) + parseInt (recordTimes); woolStorage.put (key, value) }} / * seconds converted into hours * @ param {*} appCount * @ param {*} foreachCount * @ param {*} slideTimes * @ param {*} timesInterval * @ param {*} isExistsLongTimes * / function computerTime (appCount, foreachCount, slideTimes, timesInterval, isExistsLongTimes) {let maxSecond = appCount * foreachCount * slideTimes * timesInterval;let maxHour = maxSecond / 3600X return Math.round (maxHour) } / * get the current time format yyyyMMdd * / function getDate () {var date = new Date (); var year = date.getFullYear (); var month = date.getMonth () + 1 if (month < 10) {month = "0" + month;}; var day = date.getDate (); if (day < 10) {day = "0" + day;}; return year + "-" + month + "-" + day;} function getTime () {var date = new Date () Var year = date.getFullYear (); var month = date.getMonth () + 1 if (month < 10) {month = "0" + month;}; var day = date.getDate (); if (day < 10) {day = "0" + day;}; var hour = date.getHours (); if (hour < 10) {hour = "0" + hour;}; var minute = date.getMinutes (); if (minute < 10) {minute = "0" + minute;} Return year + "-" + month + "-" + day + "+ hour +": "+ minute +": "+" 0 ";}; / / # endregion at this point, the study on" how to read novels automatically with Android4.1.0 "is over, hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 257

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report