Allto
前言
你是否厌倦了支付宝摇一摇红包每一次都要手动摇一摇的痛苦?
你是否看着别人能摇出大金额红包而愤慨?
你是否也想摇出大红包而不想浪费时间摇?
脚本
提示:本脚本采用Auto.js编写 部分机型可能存在不兼容问题 本代码只提供参考
"ui";
var color = "#009688";
ui.layout(
<drawer id="drawer">
<vertical>
<appbar>
<toolbar title="药狗抢红包bata0.1"/>
</appbar>
<frame w="*" h="*">
<vertical>
<card w="*" h="80" cardCornerRadius="10" gravity="center" marginTop="10">
<horizontal gravity="center">
<Switch id="autoService" text="无障碍服务" checked="{
{auto.service != null}}" gravity="left" textSize="20sp" />
<Switch id="xfc" text=" 打开悬浮窗" checked="{
{(new android.provider.Settings).canDrawOverlays(context) != false}}" gravity="right" textSize="20sp" />
</horizontal>
</card>
<vertical gravity="center">
<card gravity="center" marginTop="10xp" w="auto" h="auto" cardCornerRadius="90" >
<vertical gravity="center" bg="#03A6EF">
<text text="功能选择" />
</vertical>
</card>
</vertical>
<card w="*" cardCornerRadius="10" gravity="center" marginTop="10">
<vertical>
<horizontal>
<text padding="10 0 0 0" text="抢红包次数" />
{
/* <input id="num" text="10" w="50"/> */}
<text text="次数:" />
<input id="times" text="60" w="50" />
<text text="次" />
<button id="ok" textColor="white" alpha="0.7" text="确定"></button>
</horizontal>
</vertical>
</card>