首页 > 其他分享 >autojs 企业微信 一键上传

autojs 企业微信 一键上传

时间:2022-10-07 13:57:38浏览次数:46  
标签:findOne 微信 一键 autojs sleep res click 1000

app.startActivity({
  action: "android.intent.action.VIEW",
  data: "alipays://platformapi/startapp?appId=2018062060350751&page=%2Fpages%2Fweb%2Fweb%3Furl%3Dhttps%3A%2F%2Fjsstm.jszwfw.gov.cn%2FjkmIndex.html",
  packageName: "com.eg.android.AlipayGphone",
});

sleep(8000)
gestures([350, [300, 400], [300, 1400]],
  [350, [600, 400], [600, 1400]],
  [350, [900, 400], [900, 1400]]);//三指下滑截图

sleep(5000);


if (currentActivity().search("com.tencent.wework") == -1) {//当前 APP 是企业微信

  //launchApp("企业微信");//
  app.launch("com.tencent.wework");
  toast('企业微信已打开');
  log('企业微信已打开')
  sleep(5000);
}

while (!click("工作台")); sleep(500);    //这里是需要点击的工作台,自行修改

while (!click("轨迹上传")); sleep(3000); //

textContains('我承诺').findOnce().click()
sleep(1000)
res = textContains('上传健康码').findOne().bounds()
click(res.centerX(), res.centerY())
sleep(1000)



res = text('其他方式').findOne().bounds()
click(res.centerX(), res.centerY())
sleep(3000)

res = descStartsWith('Screenshot').findOne()
if(res.drawingOrder()===1){
  res.click()
}

sleep(3000)
click('确认')
sleep(1000)
click('获取验证码')
sleep(1000)
click('获取验证码')
sleep(2000)
click('关 闭')



sleep(8000)
notifications()
sleep (2000)
let num = textContains('验证码').findOnce().text().replace(/[^\d.]/g, "").trim()
setClip(num);
toast(num)
sleep(2000)
swipe(550, 1800, 550, 800, 100)


sleep (1000)
res = textContains('获取验证码').findOne().bounds()
click(res.centerX() - 100, res.centerY() + 150)

className("EditText").findOne().paste();
sleep(1000)
className('android.widget.CheckBox').findOne().click()

sleep(1000)
click('授权上传')

标签:findOne,微信,一键,autojs,sleep,res,click,1000
From: https://www.cnblogs.com/zhuoss/p/16759605.html

相关文章