• Stars
    star
    160
  • Rank 234,703 (Top 5 %)
  • Language
    Java
  • Created almost 9 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

本项目基于 ABot 实现了微信抢红包功能插件,设计思路和代码实现都非常简单。

点击下载 APK

截图如下:

关于 ABot

ABot 是一个 AccessibilityEvent 驱动的动作引擎。

ABot 的目的是基于 AccessibilityEvent 实现对任意 APP 的自动化操作。

目前,ABot 包含了两个模块:

AccessibilityEvent 节点解析

  1. 节点使用表达式进行匹配:

    index:class_name|k1=v1,k2=v2
    
    1. index: 表示该节点在父节点的位置, * 表示任意节点,根节点可用任意数字。

    2. class_name: 表示 View 的类名

    3. | 之后是 & 号分隔, = 号相连的属性列表,目前支持的属性有:

      parent: 回退到父节点层级

      childCount: 子元素数目

      textContains: text 包含关键字

  2. 节点之间使用 > 连接,表示一个节点路径,如下:

    0:android.widget.FrameLayout>1:android.support.v4.view.ViewPager>0:android.widget.ListView>*:android.widget.LinearLayout`
    
  3. 节点配置

    支持节点配置文件,节点名和节点配置用 => 连接,每行一条配置,如下

    key1  =>  expression1
    key2  =>  expression2
    

    示例:

    open_lucky_money   =>  0:android.widget.FrameLayout>3:android.widget.Button
    close_lucky_money  =>  0:android.widget.FrameLayout>*:android.widget.ImageView
    

Action

ABot 引入 Action 概念,Event 驱动 Action 完成,通过不同的 Action 的组合,来完成一个复杂的操作。

  1. Action 分类

    分为『单一 Action 』和 『复合 Action 』,前者是比如点击,判断有无元素,计时等简单操作,后者是前者的组合。

  2. 简单的 Action

    目前支持的有点击,判断元素存在与否,滑动,计时,Toast 等。

  3. 组合 Action

    1. AndAction,挨个完成 Action, 直到所有的都完成。

    2. OrAction, 事件将同时派发到每个子 Action,直到所有完成。

    3. BranchAction,按顺序派发事件给各个 Action, 如果事件被某个 Action 完成,则会继续派发到此 Action 直到该 Action 完成。

许可协议

MIT

致谢

  1. 本项目最初受该项目启发 WeChatLuckyMoney

  2. @代码家 同学的『一起来干货分享反馈群』,本插件开发测试过程,深得此群帮助。

  3. 感谢我的家人和朋友的支持,尤其是 @咏枫 催促我完成此项目。

More Repositories

1

android-Ultra-Pull-To-Refresh

Ultra Pull to Refresh for Android. Support all the views.
Java
9,584
star
2

android-UCToast

Demonstrate how UC browser display a system overlay view in any platform above API level 9.
Java
1,378
star
3

android-GridViewWithHeaderAndFooter

A GridView which can addHeaderView and addFooterView
Java
1,336
star
4

cube-sdk

A light package for Android development, it handles loading image and network request.
Java
1,185
star
5

android-cube-app

Java
1,010
star
6

android-support-23.2-sample

Sample Project for Android Support Library 23.2
Java
773
star
7

leakcanary-demo

The demo for leakcanary: https://github.com/square/leakcanary
Java
631
star
8

fresco-docs-cn

Chinese documentation for fresco. The github pages site is: http://fresco-cn.org/
JavaScript
484
star
9

fresco-demo-for-gradle

404
star
10

wechat-helper

WeChat Helper is a chrome plugin.
JavaScript
365
star
11

icon-font-for-multiple-platforms

Extra icons from Sketch file, generate font files, demos how to use font files on Web, iOS and Android.
Java
359
star
12

android-dynamic-load-awesome

320
star
13

android-ILoveBaidu

I Love Baidu.
Java
222
star
14

android-RavenServer

Start an activity in WeChat!
Java
211
star
15

btcbot-open

在 binance 和 bitfinex 搬砖的机器人,目标是赚更多 BTC 🍺🍺🍺🍺🍺
Python
198
star
16

android-ClipboardManagerCompat

ClipboardManager to API level 1.
Java
182
star
17

android-ActionQueue

ActionQueue allows you run action one by one.
Java
179
star
18

SimpleHashSet

Save 25% memory for you.
Java
137
star
19

f8-app-tutorial-cn

HTML
111
star
20

follow-each-other

97
star
21

android-CLog

Java
71
star
22

jekyll-multiple-languages

A Multiple Languages plugin for Jekyll
Ruby
46
star
23

ssh-auto-login

Shell
43
star
24

leetcode-helper

Leetcode Chrome extension.
JavaScript
39
star
25

vim_anywhere

Vim Script
29
star
26

fresco-demo-for-maven

A demo project of how to use fresco in Intellij IDEA / Maven
Java
28
star
27

android-BitMaskSample

BitMask Sample
Java
24
star
28

ActionSheet

ActionSheet for Android
23
star
29

qq-tribe-rule

23
star
30

work-anywhere

Shell
21
star
31

leetcode-0x01

19
star
32

infer-docs-cn

Chinese documentation for Facebook Infer.
JavaScript
18
star
33

ReactNativeTestGradlePlugin

ReactNativeTestGradlePlugin
Objective-C
16
star
34

jekyll-multiple-languages-sample

Sample for jekyll-multiple-languages
HTML
15
star
35

liaohuqiu.github.io

It is my blog on github
HTML
14
star
36

chinese-simplified-common-characters

3754 个常用汉字列表 / A list of 3754 Chinese simplified common characters.
13
star
37

cube-php

JavaScript
10
star
38

cube-box

JavaScript
9
star
39

umeng-libs

Python
8
star
40

java-object-size

Java
8
star
41

ABCDFragment

Demo for http://stackoverflow.com/questions/30781141/hide-parent-fragment-from-the-fragment-in-the-viewpager
Java
7
star
42

list-sorter

JavaScript
6
star
43

docker-simple-obfs

Shell
6
star
44

shadowsocks-libenv

Python
5
star
45

centos-setup

Shell
5
star
46

bt-docs

A bootstrap docs like document site.
CSS
5
star
47

android-cube-app-server

JavaScript
4
star
48

umeng-share

Python
4
star
49

cube-sdk-pages

github pages for cube-sdk
CSS
4
star
50

android-Ultra-Pull-To-Refresh-docs

Documentation for android Ultra Pull to Refresh
CSS
4
star
51

kx_auto_login

auto input password and pre-passcode for login in, and keep login session for next login
Shell
3
star
52

dnsmasq-docker

dnsmasq + rsyslog, easy to tune
Shell
3
star
53

keep-running

Monitor your program, keep it running.
Python
3
star
54

aliyun-ossutil-docker

Shell
3
star
55

docker-chinadns

ChinaDns Docker image, base on alpine.
Shell
3
star
56

android-dotview

Java
3
star
57

cube-rpc-python

Python implement for Cube RPC
Python
3
star
58

gradle-generate-maven-pom

2
star
59

fb-docs-TextLayoutBuilder

HTML
2
star
60

cube-rpc

SPEC for cube-rpc
2
star
61

cube-sdk-server

Shell
2
star
62

cold-dns

Shell
1
star
63

mac-setup

Shell
1
star
64

docker-shadowsocks-gateway

Shell
1
star
65

appcfg.py-save-authorization

Save the authorization information of Google Cloud Platform after a successful authorization.
Shell
1
star
66

python-cmd-server

Python
1
star
67

cube-php-docs

HTML
1
star
68

liaohuming.github.io

我的个人博客[email protected]
HTML
1
star
69

ttl

JavaScript
1
star
70

hs-airdrop

HNS 空投
Python
1
star