首页 > 编程知识 正文

autojs快手自动脚本,快手极速版autojs脚本

时间:2023-05-06 03:26:33 阅读:244811 作者:3047

链接:https://pan.baidu.com/s/1GtbfV0rsdhpvCr_yfBJjHA  提取码:tpgj

抖音极速版邀请码:896357244 看文章加关注点分享都不用...加下邀请码就好

快手极速版邀请码: 2rvxaem 代码地址:https://blog.csdn.net/zy0412326/article/details/104788816

火山极速版邀请码:279116054  代码地址:https://blog.csdn.net/zy0412326/article/details/104913848

今日头条极速版邀请码:1849623318  代码地址:https://blog.csdn.net/zy0412326/article/details/105011375

之前发的文章都是基于AutojsApp的文章,就终级福利是APK文件。并且公开了源码大家可以自行下载和修改代码自己搞。对于非程序猿这个有很大的苦难,虽然AutoJs学习起来相对容易。但是也很费劲,并且薅羊毛UI版不支持自动清理内容、自动签到和终级大招自动提现,今天分享给大家的这个抖音小助手支持如下功能:

splash代码:(可独立运行的)

"ui";//activity.window.addFlags(android.view.WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);//设置状态栏透明activity.window.addFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);//设置全屏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);}ui.layout( <relative> <viewpager id="viewpager"> <relative> <vertical w="*" h="*" id="firstpage" gravity="center"> <text text="欢迎使用" textSize="45sp" textColor="#FFFFFF" gravity="center" /> <text text="滑动屏幕来了解更多信息" marginTop="10" textSize="15sp" textColor="#A0FFFFFF" gravity="center" /> </vertical> <text id="skip" text="单击此处以跳过" marginBottom="100" textSize="13sp" textColor="#30FFFFFF" gravity="center" layout_alignParentBottom="true" layout_centerHorizontal="true" /> </relative> <vertical id="page1" gravity="center"> <text text="简洁" textSize="45sp" textColor="#FFFFFF" gravity="center" /> <text text="简约 优雅" marginTop="10" textSize="15sp" textColor="#A0FFFFFF" gravity="center" /> </vertical> <vertical id="page2" gravity="center"> <text text="便捷" textSize="45sp" textColor="#FFFFFF" gravity="center" /> <text text="简单 易用" marginTop="10" textSize="15sp" textColor="#A0FFFFFF" gravity="center" /> </vertical> <vertical id="permissionpage" gravity="center"> <text text="需要授权" textSize="45sp" textColor="#FFFFFF" gravity="center" /> <text id="permission" text="单击此处进行授权" marginTop="10" textSize="15sp" textColor="#A0FFFFFF" gravity="center" /> </vertical> <vertical id="startpage" gravity="center"> <vertical> <Switch id="autoService" text="开启无障碍服务:" checked="{{auto.service != null}}" textColor="red" padding="8 8 8 8" textSize="15sp" /> </vertical> <vertical> <Switch id="switchEnbleFloating" text="开启悬浮窗:" checked="{{auto.service != null}}" padding="8 8 8 8" textSize="15sp" textColor="red" /> </vertical> </vertical> </viewpager> <tabs id="tabs" marginBottom="50" w="80" h="2" bg="#50AAAAAA" layout_alignParentBottom="true" layout_centerHorizontal="true" visibility="gone" /> </relative>);ui.viewpager.overScrollMode = android.view.View.OVER_SCROLL_NEVER;//删除滑动到底时的边缘阴影ui.tabs.setupWithViewPager(ui.viewpager);//绑定ViewPager到指示器ui.tabs.selectedTabIndicatorColor = Color("#FFFFFF");//设置tabs指示器颜色ui.tabs.selectedTabIndicatorHeight = ui.tabs.layoutParams.height;//设置指示器高度与tabs同高//为页面设置渐变色背景ui.firstpage.backgroundDrawable = GradientDrawable("TL_BR", ["#81C784", "#2E7D32", "#2E7D32"]);ui.page1.backgroundDrawable = GradientDrawable("TL_BR", ["#4FC3F7", "#0277BD", "#0277BD"]);ui.page2.backgroundDrawable = GradientDrawable("TL_BR", ["#FFF176", "#F9A825", "#F9A825"]);ui.permissionpage.backgroundDrawable = GradientDrawable("TL_BR", ["#80DEEA", "#0097A7", "#0097A7"]);ui.startpage.backgroundDrawable = GradientDrawable("TL_BR", ["#CFD8DC", "#78909C", "#78909C"]);ui.skip.click(() => ui.viewpager.currentItem = ui.viewpager.childCount - 1);//点击跳过则跳转到最后一页permissionpage = ui.viewpager.childCount - 1 - 1;//授权页下标(启动页前一页)(启动页固定最后一页)

新增了一个splash欢迎页面,费了点劲,大家可以参考。

给大家放几个图看看,我在把做这个Apk时候的难点说说,大家能少走一些弯路。我自测试了2个机型。我测试的机型是华为Mate10和华为Nova。一个是大屏一个是小屏幕。看下截图吧。

链接:https://pan.baidu.com/s/1GtbfV0rsdhpvCr_yfBJjHA  提取码:tpgj

最后送大家一首诗:

山高路远坑深,

大军纵横驰奔,

谁敢横刀立马?

惟有点赞加关注大军。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。