Giter Club home page Giter Club logo

wechatredpacket's Introduction

WechatRedPacket

Android:实现监听微信红包,并自动抢红包,春节必不可少[PS:微信消息需打开通知栏提示]。

原理:

利用AccessibilityService这个辅助服务类,监听通知栏微信消息,如果有微信红包,就模拟界面一些控件的点击事件。 可能大家会问:如何模拟界面上的控件点击事件呢? 问得好。

这里可以用到ADT里的uiautomatorviewer工具,可以清晰地看到每个界面每个控件的属性,如控件类型(是Button,还是ImageView,或者是TextView……)、 clickable的值是否可点击等;还会用到AccessibilityService类中getRootInActiveWindow这个方法,来获取这个界面。

了解详细讲解,请关注博客http://blog.csdn.net/weiren1101/article/details/53112439

原理图

====================== 微信红包插件,简单、安全。

注意:

Android系统4.1以上、微信版本6.3.28及以上。

此app安装后,请在手机“设置---辅助服务”(可能有些手机不是这样称呼),开启“微信红包插件”服务才能提醒有微信红包。 如下图:

wechatredpacket's People

Contributors

ericsongyl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.