Code Monkey home page Code Monkey logo

godhand's Introduction

GodHand

根据uiautomator框架实现类似按键精灵,触动精灵的程序,支持lua语言, 需root
只支持android4.4 以上版本.

使用方法

1、编译程序,生成一个主apk(app\build\outputs\apk\app-debug.apk)和一个单元测试apk(app\build\outputs\apk\app-debug-androidTest-unaligned.apk).
2、安装上面两个程序.
3、写入指定的文件运行名到 "/mnt/sdcard/GodHand/tmp/run_file", 不写默认为main.lua.
4、运行adb shell am instrument -w -r -e debug false -e class com.rzx.godhandmator.AutomatorTest com.rzx.godhandmator.test/android.support.test.runner.AndroidJUnitRunner.


Example

  require 'import'
  import 'com.rzx.godhandmator.AutomatorApi'
  
  AutomatorApi:toast("任务执行开始")
  AutomatorApi:mSleep(2000)
  AutomatorApi:swipe(719,500,100,500,50)
  AutomatorApi:toast("任务执行结束")
  AutomatorApi:mSleep(2000)

日志

出错日志查看/mnt/sdcard/GodHand/log/system.log

godhand's People

Contributors

dongwenhu 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.