多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
click(200,450) sleep(3000) //下拉添加一次书签,方便回头再看。 swipe(600, 1000, 600, 1800, 2000); sleep(800) //每5秒就点击屏幕翻页一次 var id = setInterval(function(){ "auto"; setScreenMetrics(1080,2160); click(1000,1500); }, 10000); //60分钟后取消循环 setTimeout(function(){ clearInterval(id); }, 3600 * 1000); log("你好") alert("你好") // 刷短视频脚本(可应用于快手、抖音等短视频APP应用) // Auto.js 版本: 4.1.1 Alpha2 // 编辑器: Visual Studio Code // 插件: Auto.js-VSCodeExt-Fixed // for (var i = 1; i <= 10; i++) { // var x1 = device.width / 2 + random(0, 10) // var y1 = (device.height / 6) * 5 + random(0, 10) // var x2 = device.width / 2 + random(0, 10) // var y2 = device.height / 6 + random(0, 50) // var swipe_time = 450 + random(0, 30) // var sleep_time = 2000 + random(1000, 5000) // swipe(x1, y1, x2, y2, swipe_time) // sleep(sleep_time) // } // ———————————————————————————————————————————————————————————————————————— // adTime = 40000 + random(1000, 5000) // gapTime = 60000 * 21 + random(1000, 5000) // function click_bounds(obj) { // var point = obj.bounds() // click(point.centerX() + random(0, 10), point.centerY() + random(0, 10)) // } // function closeAd() { // if (desc('返回').exists()) { // back() // sleep(1000) // back() // sleep(1000) // } else { // back() // sleep(1000) // } // } // function runTask() { // click_bounds(text('去领取').findOnce()) // sleep(adTime) // closeAd() // if (text('领取奖励').exists()) { // click_bounds(text('领取奖励').findOnce()) // sleep(adTime) // closeAd() // } // } // function treasureBox() { // click_bounds(text('开宝箱得金币').findOnce()) // sleep(3000) // click_bounds(text('看广告视频再赚').findOnce()) // sleep(adTime) // closeAd() // if (text('领取奖励').exists()) { // click_bounds(text('领取奖励').findOnce()) // sleep(adTime) // closeAd() // } // } // function main() { // while (!text('去领取').exists()) { // toast('请打开任务界面') // } // runTask() // sleep(5000) // treasureBox() // } // main() // setInterval(main, adTime) click(200,450) sleep(3000) //下拉添加一次书签,方便回头再看。 swipe(600, 1000, 600, 1800, 2000); sleep(800) //每5秒就点击屏幕翻页一次 var id = setInterval(function(){ "auto"; setScreenMetrics(1080,2160); click(1000,1500); }, 10000); //60分钟后取消循环 setTimeout(function(){ clearInterval(id); }, 3600 * 1000); Git /src/config/index.js中的baseUrl需要换成你自己搭建的后台接口域名 vue.config.js中的BASE_URL按照代码注释换成你的地址 export default { /** * @description 配置显示在浏览器标签的title */ title: 'ApiAdmin身边的接口管理专家', /** * @description 是否使用国际化,默认为false * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'} * 用来在菜单中显示文字 */ useI18n: false, /** * @description api请求基础路径 */ baseUrl: { dev: 'http://test.com/', pro: 'https://test.com/' }, /** * @description 需要加载的插件 */ plugin: { } } https://game.iweike360.com/ https://game.iweike360.com/ 修改成自己的 https://wwt.lanzouj.com/ieJDa09dy7pe 8m71 https://wwt.lanzouj.com/iZFZj09dx8cb <!-- All in One SEO 4.2.3.1 --> <title>利用 Auto.js 做一个自动刷短视频的脚本 - 佛利斯博客</title> <meta name="description" content="一直在用 Airtest 来做自动化,但是 Airtest 唯一缺点就是需要连接手机到 PC 端。而 Auto" /> <meta name="robots" content="max-image-preview:large" /> <meta name="google-site-verification" content="dChWmdJqzv9KFQb0zjUr-OskTl0s3w7RHb2thyiNGO0" /> <meta name="keywords" content="auto.js,autojs,脚本,自动化,编程笔记" /> <link rel="canonical" href="https://www.forece.net/post/5448.htm" /> <meta name="generator" content="All in One SEO (AIOSEO) 4.2.3.1 " /> <meta property="og:locale" content="zh_CN" /> <meta property="og:site_name" content="佛利斯博客 -" /> <meta property="og:type" content="article" /> <meta property="og:title" content="利用 Auto.js 做一个自动刷短视频的脚本 - 佛利斯博客" /> <meta property="og:description" content="一直在用 Airtest 来做自动化,但是 Airtest 唯一缺点就是需要连接手机到 PC 端。而 Auto" /> <meta property="og:url" content="https://www.forece.net/post/5448.htm" /> <meta property="article:published_time" content="2022-02-28T03:55:06+00:00" /> <meta property="article:modified_time" content="2022-03-17T07:25:30+00:00" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:title" content="利用 Auto.js 做一个自动刷短视频的脚本 - 佛利斯博客" /> <meta name="twitter:description" content="一直在用 Airtest 来做自动化,但是 Airtest 唯一缺点就是需要连接手机到 PC 端。而 Auto" /> <meta name="google" content="nositelinkssearchbox" /> <script type="application/ld+json" class="aioseo-schema"> {"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.forece.net\/#website","url":"https:\/\/www.forece.net\/","name":"\u4f5b\u5229\u65af\u535a\u5ba2","inLanguage":"zh-CN","publisher":{"@id":"https:\/\/www.forece.net\/#person"}},{"@type":"Person","@id":"https:\/\/www.forece.net\/#person","name":"Forece","image":{"@type":"ImageObject","@id":"https:\/\/www.forece.net\/post\/5448.htm#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/83b9c9fa1d1c368cc07131c8f988e7fe?s=96&d=mm&r=g","width":96,"height":96,"caption":"Forece"}},{"@type":"BreadcrumbList","@id":"https:\/\/www.forece.net\/post\/5448.htm#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.forece.net\/#listItem","position":1,"item":{"@type":"WebPage","@id":"https:\/\/www.forece.net\/","name":"\u4e3b\u9801","description":"\u4f5b\u5229\u65af\u535a\u5ba2\u662f\u4e00\u4e2a\u5173\u6ce8\u4e92\u8054\u7f51\u548cIT\u6280\u672f\u7684\u535a\u5ba2,\u4e3b\u8981\u63d0\u4f9b\u672c\u4eba\u7684\u56fd\u5916\u751f\u6d3b\u65e5\u5fd7,\u4e92\u8054\u7f51\u8d44\u8baf,IT\u6280\u672f\u548c\u7f51\u7edc\u8d5a\u94b1\u7b49\u76f8\u5173\u4fe1\u606f\u3002","url":"https:\/\/www.forece.net\/"}}]},{"@type":"Person","@id":"https:\/\/www.forece.net\/post\/author\/forece#author","url":"https:\/\/www.forece.net\/post\/author\/forece","name":"Forece","image":{"@type":"ImageObject","@id":"https:\/\/www.forece.net\/post\/5448.htm#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/83b9c9fa1d1c368cc07131c8f988e7fe?s=96&d=mm&r=g","width":96,"height":96,"caption":"Forece"}},{"@type":"WebPage","@id":"https:\/\/www.forece.net\/post\/5448.htm#webpage","url":"https:\/\/www.forece.net\/post\/5448.htm","name":"\u5229\u7528 Auto.js \u505a\u4e00\u4e2a\u81ea\u52a8\u5237\u77ed\u89c6\u9891\u7684\u811a\u672c - \u4f5b\u5229\u65af\u535a\u5ba2","description":"\u4e00\u76f4\u5728\u7528 Airtest \u6765\u505a\u81ea\u52a8\u5316\uff0c\u4f46\u662f Airtest \u552f\u4e00\u7f3a\u70b9\u5c31\u662f\u9700\u8981\u8fde\u63a5\u624b\u673a\u5230 PC \u7aef\u3002\u800c Auto","inLanguage":"zh-CN","isPartOf":{"@id":"https:\/\/www.forece.net\/#website"},"breadcrumb":{"@id":"https:\/\/www.forece.net\/post\/5448.htm#breadcrumblist"},"author":"https:\/\/www.forece.net\/post\/author\/forece#author","creator":"https:\/\/www.forece.net\/post\/author\/forece#author","datePublished":"2022-02-28T03:55:06-04:00","dateModified":"2022-03-17T07:25:30-04:00"},{"@type":"Article","@id":"https:\/\/www.forece.net\/post\/5448.htm#article","name":"\u5229\u7528 Auto.js \u505a\u4e00\u4e2a\u81ea\u52a8\u5237\u77ed\u89c6\u9891\u7684\u811a\u672c - \u4f5b\u5229\u65af\u535a\u5ba2","description":"\u4e00\u76f4\u5728\u7528 Airtest \u6765\u505a\u81ea\u52a8\u5316\uff0c\u4f46\u662f Airtest \u552f\u4e00\u7f3a\u70b9\u5c31\u662f\u9700\u8981\u8fde\u63a5\u624b\u673a\u5230 PC \u7aef\u3002\u800c Auto","inLanguage":"zh-CN","headline":"\u5229\u7528 Auto.js \u505a\u4e00\u4e2a\u81ea\u52a8\u5237\u77ed\u89c6\u9891\u7684\u811a\u672c","author":{"@id":"https:\/\/www.forece.net\/post\/author\/forece#author"},"publisher":{"@id":"https:\/\/www.forece.net\/#person"},"datePublished":"2022-02-28T03:55:06-04:00","dateModified":"2022-03-17T07:25:30-04:00","commentCount":1,"articleSection":"\u7f16\u7a0b\u7b14\u8bb0, auto.js, autojs, \u811a\u672c, \u81ea\u52a8\u5316","mainEntityOfPage":{"@id":"https:\/\/www.forece.net\/post\/5448.htm#webpage"},"isPartOf":{"@id":"https:\/\/www.forece.net\/post\/5448.htm#webpage"},"image":{"@type":"ImageObject","@id":"https:\/\/www.forece.net\/post\/5448.htm#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/83b9c9fa1d1c368cc07131c8f988e7fe?s=96&d=mm&r=g","width":96,"height":96,"caption":"Forece"}}]} </script> <!-- All in One SEO --> 本店所有商品24小时自动发货 亲,直接拍就可以呢 各位请养成良好的购物习惯【避免不必要的麻烦】 1.源码为虚拟产品,拍前请慎重,购买源码前有演示站的先测试演示站,没有演示站的可以联系客服咨询再下单!源码一切功能、UI以演示站为准!不保证所有源码都无BUG,演示站以外问题不接受任何理由退款,务必测试完购买。 2.源码搜藏网安装服务仅对网站源码安装和前端搭建,不进行设置,网站环境需买家自行配置好,安装网站和前端搭建,需要买家提供服务器账号以及域名,不接受QQ等一切远程操作。linux可以只提供宝塔或其他面板!如果需要对接支付充值、短信、APP、网站名称及图片修改设置等,另外协商费用。另外,购买前务必看清环境要求,环境不对测试有问题不能成为退款的理由! 3.收费服务:服务器环境配置、系统安装、网站调试(如需要请跟客服提前沟通好) 4.免责声明:本店所售源码只供娱乐模拟测试研究,不得使用于非法用途,不得违反国家法律,否则后果自负!购买以后用作他用附带的一切法律责任后果都由购买者承担于本店无任何关系! 5.请知晓再购买。一经下单既默认同意以上条款!谢谢大家支持理解。 源码介绍 ThinkPHP开发的一款医疗门诊系统源码。是一款专业用于医疗进销存数据统计的管理系统,功能齐全,科室管理、挂号费管理、处方附加费、检查项目费、药品管理、药品进销存、看病就诊、医生排班等功能,数据统计功能,清楚的看出医院的一些常用数据。使用方便。 带第三方配置,带微信登录! 1、基于ThinkPHP开发的开发的一款医疗门诊系统源码 2、是一款专业用于医疗进销存数据统计的管理系统,功能齐全,使用方便。 3、科室管理、挂号费管理、处方附加费、检查项目费、药品管织梦cms免费模板理、药品进销存、看病就诊、医生排班等功能,数据统计功能,清楚的看出医院的一些常用数据。 4、此套源码目前市面上的手机端都有显示问题,所以不带手机端。 源码压缩包大小30.8MB http://test.com/Index/base_index <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] </IfModule> <?php $input_file_1 = $argv[1]; $input_file_2 = $argv[2]; $output_file = $argv[1] . '.restore.php'; $code = file_get_contents($input_file_1); $code2 = file_get_contents($input_file_2); $key = find_key($code2); // 替换函数名 $code = replace_globals_var($code, $code2, $key); // 解析字符串 $decrypt_func_name = find_decrypt_func_name($code2); $code = decrypt_decrypt_func($code, $decrypt_func_name, $key); file_put_contents($output_file, $code); echo '复原后文件已写入到 ', $output_file, PHP_EOL; function get_globals_var($code, $var_name, $key) { $pos1 = strpos($code, $var_name); $pos2 = strpos($code, "'", $pos1) + 1; $pos3 = strpos($code, "'", $pos2); $arg1 = substr($code, $pos2, $pos3 - $pos2); $value = decrypt($arg1, $key); return $value; } function replace_globals_var($code, $code2, $key) { $result = ''; $pos1 = 0; while (false !== ($pos2 = strpos($code, '$GLOBALS', $pos1))) { $pos3 = strpos($code, "'", $pos2) + 1; $pos4 = strpos($code, "'", $pos3); $pos5 = strpos($code, ']', $pos4); $var_name = substr($code, $pos3, $pos4 - $pos3); $value = get_globals_var($code2, $var_name, $key); $search = substr($code, $pos2, $pos5 + 1 - $pos2); $code = str_replace($search, $value, $code); $pos1 = $pos2; } return $code; } function decrypt($data, $key) { $data_1 = ''; for ($i = 0; $i < strlen($data); $i++) { $ch = ord($data[$i]); if ($ch < 245) { if ($ch > 136) { $data_1 .= chr($ch / 2); } else { $data_1 .= $data[$i]; } } } $data_1 = base64_decode($data_1); $key = md5($key); $j = $ctrmax = 32; $data_2 = ''; for ($i = 0; $i < strlen($data_1); $i++) { if ($j <= 0) { $j = $ctrmax; } $j--; $data_2 .= $data_1[$i] ^ $key[$j]; } return $data_2; } function find_key($code) { // $v1 = $v2('bWQ1'); // $key1 = $v1('??????'); $pos1 = strpos($code, "('" . preg_quote(base64_encode('md5')) . "');"); $pos2 = strrpos(substr($code, 0, $pos1), '$'); $pos3 = strrpos(substr($code, 0, $pos2), '$'); $var_name = substr($code, $pos3, $pos2 - $pos3 - 1); $pos4 = strpos($code, $var_name, $pos1); $pos5 = strpos($code, "('", $pos4); $pos6 = strpos($code, "')", $pos4); $key = substr($code, $pos5 + 2, $pos6 - $pos5 - 2); return $key; } function find_decrypt_func_name($code) { // function decrypt_func($arg1, $arg2 = '') // ... // $v1 = $v2('bWQ1'); $pos1 = strpos($code, "('" . preg_quote(base64_encode('md5')) . "');"); $pos2 = strrpos(substr($code, 0, $pos1), 'function '); $pos2 = $pos2 + strlen('function '); $pos3 = strpos($code, '(', $pos2); $decrypt_func_name = substr($code, $pos2, $pos3 - $pos2); return trim($decrypt_func_name); } function decrypt_decrypt_func($code, $decrypt_func_name, $key) { $result = ''; $pos1 = 0; while (false !== ($pos2 = strpos($code, $decrypt_func_name, $pos1))) { $pos3 = strpos($code, "'", $pos2) + 1; $pos4 = strpos($code, "'", $pos3); $pos5 = strpos($code, ")", $pos4); $arg1 = substr($code, $pos3, $pos4 - $pos3); $value = decrypt($arg1, $key); $search = substr($code, $pos2, $pos5 + 1 - $pos2); $code = str_replace($search, var_export($value, true), $code); $pos1 = $pos2; } return $code; }