Add: Volume Changing to stop scripts, Fix: Automator ANR
This commit is contained in:
@@ -16,6 +16,7 @@ container.addView(btnOk);
|
||||
activity.setContentView(container);
|
||||
|
||||
btnOk.setOnClickListener(function(view){
|
||||
activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("mqqwpa://im/chat?chat_type=wpa&uin=" + qq.getText())));
|
||||
activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("mqqwpa://im/chat?chat_type=wpa&uin=" + qq.getText()))
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
||||
activity.finish();
|
||||
});
|
||||
@@ -5,8 +5,12 @@ importClass(com.afollestad.materialdialogs.MaterialDialog);
|
||||
new MaterialDialog.Builder(activity)
|
||||
.title("简单计算器")
|
||||
.input("请输入算式", "1+1", function(dialog, input){
|
||||
eval("var ans = (" + input + ")");
|
||||
toast(ans);
|
||||
try{
|
||||
eval("var ans = (" + input + ")");
|
||||
toast(ans);
|
||||
}catch(e){
|
||||
toast("式子错误");
|
||||
}
|
||||
})
|
||||
.positiveText("计算")
|
||||
.dismissListener(function(dialog){
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"auto";
|
||||
launch("com.tencent.mobileqq");
|
||||
toast("请打开一个聊天窗口");
|
||||
toast("出现红包时将会自动拆开并关闭");
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
"auto";
|
||||
importClass(android.content.Intent);
|
||||
importClass(android.net.Uri);
|
||||
importClass(android.provider.Settings);
|
||||
|
||||
function 打开App设置(packageName){
|
||||
var intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
|
||||
var uri = Uri.fromParts("package", packageName, null);
|
||||
intent.setData(uri);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
打开App设置("com.tencent.mobileqq");
|
||||
openAppSetting("com.tencent.mobileqq");
|
||||
while(!currentPackage().equals("com.android.settings"));
|
||||
while(!click("通知"));
|
||||
while(!click("全部阻止"));
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"auto";
|
||||
launch("com.tencent.mm");
|
||||
while(!click("发现"));
|
||||
while(!click("扫一扫"));
|
||||
@@ -1,3 +1,4 @@
|
||||
"auto";
|
||||
|
||||
function 打开正在运行的服务(){
|
||||
launch("com.android.settings");
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
"auto";
|
||||
launchApp("支付宝");
|
||||
while(!click("扫一扫"));
|
||||
@@ -1,3 +1,5 @@
|
||||
"auto";
|
||||
|
||||
function 下滑(){
|
||||
className("AbsListView").scrollable().scrollForward();
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
"auto";
|
||||
|
||||
launchApp("QQ");
|
||||
toast("打开一个聊天窗口,并点击下面的图片按钮");
|
||||
for(i = 0; i < 100;i++){
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
"auto";
|
||||
|
||||
while(true){
|
||||
if(id("i4").untilFindOne().parent().parent().click()){
|
||||
sleep(700);
|
||||
|
||||
15
app/src/main/assets/sample/选择器/批量取关公众号.js
Normal file
15
app/src/main/assets/sample/选择器/批量取关公众号.js
Normal file
@@ -0,0 +1,15 @@
|
||||
"auto";
|
||||
|
||||
function 取消关注(){
|
||||
id("af9").longClickable().longClick();
|
||||
click("取消关注");
|
||||
click("不再关注");
|
||||
}
|
||||
|
||||
toast("请在10秒内打开订阅号界面");
|
||||
toast("10秒后如果没有反应请稍微滑动一下页面");
|
||||
sleep(10 * 1000);
|
||||
|
||||
while(true){
|
||||
取消关注();
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
"auto";
|
||||
|
||||
launchApp("网易云音乐");
|
||||
id("kp").click();
|
||||
text("签到").className("TextView").click();
|
||||
Reference in New Issue
Block a user