You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
规则:
{
key: 13,
name: '功能类-小白智慧打印自动选择微信文件',
desc: '点击[文档打印]-点击[微信文档打印]',
actionMaximum: 1,
resetMatch: 'app',
activityIds: [
'.plugin.appbrand.ui.AppBrandUI',
],
rules: [
{
key: 0,
name: '点击[文档打印]',
matches: [
'@image < View +n TextView[text="搜索教辅和资料"][visibleToUser=true]',
],
excludeMatches: [
'@TextView[text*="跳过"][visibleToUser=true]',
'@TextView[text="正在打印"] +2 TextView[text="已经开始打印,您可以使用其他功能啦~"]',
],
actionDelay: 1500,
},
{
key: 1,
name: '点击[微信文档打印]',
preKeys: [
0,
],
action: 'clickCenter',
matches: [
'@image < View < View - View > TextView[text="文档"][visibleToUser=true]',
],
excludeMatches: [
'@TextView[text="正在打印"] +2 TextView[text="已经开始打印,您可以使用其他功能啦~"]',
'@image[width<60 && height<60] - ListView[clickable=true] > View[text="可横向滚动"][visibleToUser=true]',
],
actionDelay: 1000,
},
],
}
快照:
https://i.gkd.li/i/24414027
https://i.gkd.li/i/24414039
微信小程序中,写了个上述规则,但是微信文档打印页面有时候会出现一个matches为@image[width<60 && height<60] - ListView[clickable=true] > View[text="可横向滚动"][visibleToUser=true]的弹窗广告,当没有这个弹窗广告时,自动点击完文档打印后会自动点击微信文档打印,但当有这个弹窗广告时,自动点击完文档打印后,自动点击关闭这个弹窗广告(在另外的规则中),然后就不会再自动点击微信文档打印了。请教一下如何让自动点击关闭这个弹窗广告后,仍然能够自动点击微信文档打印?给key1添加forcedTime与matchRoot能够解决吗?
另外想请问一下forcedTime的计时是在匹配到activityIds之后开始计时的吗?像微信小程序的activityIds都是.plugin.appbrand.ui.AppBrandUI,如果写了forcedTime,那是不是表示在我打开微信小程序的时候forcedTime就开始计时了?请大佬指教一下,谢谢!
Beta Was this translation helpful? Give feedback.
All reactions