Giter VIP home page Giter VIP logo

autojs's Introduction

autojs

The RPC framework of autojs allows you to use Python to operate phone.

Usage

1.Download and install AutoX.js

2.Add autox-client.js to AutoX.js app, then run this script

3.Install autojs

$ pip install autojs

script mode

from autojs import AutoJS

with AutoJS() as auto_js:
    auto_js.app.launchApp('微信').call()
    auto_js.eval('console.log("Hello AutoX.js")')

shell mode

from autojs import AutoJS

with AutoJS() as auto_js:
    auto_js.shell()

Documentation

AutoX.js API documentation at <http://doc.autoxjs.com>.

Meta

Distributed under the MIT license. See LICENSE <https://github.com/miloira/autojs/LICENSE> for more information.

https://github.com/miloira/autojs

autojs's People

Stargazers

 avatar  avatar  avatar  avatar Zhiyang Lv avatar  avatar miloira avatar Liu avatar chwwhaha avatar  avatar Liberation avatar  avatar  avatar

Watchers

miloira avatar

Forkers

imeepos

autojs's Issues

AutoX.js 版本 6.5.8 undefined 'undefined'

AutoX.js 版本 6.5.8
17:13:22.668/D: receive data: {"id":"c4d14565-99de-4fce-8ff2-12c13fe5af65","type":"cmd","data":"shape.shape.len.shape.shape.len.app.launchApp("同花顺")"}
17:13:22.692/D: send data: {"id":"c4d14565-99de-4fce-8ff2-12c13fe5af65","type":"error","data":"ReferenceError: "shape" is not defined."}
17:13:30.962/D: receive data: {"id":"fa296423-4963-466b-a532-675829a36ea6","type":"cmd","data":"console.log("Hello AutoX.js")"}
17:13:30.977/D: Hello AutoX.js
17:13:30.989/D: undefined 'undefined'
17:13:30.998/D: send data: {"id":"fa296423-4963-466b-a532-675829a36ea6","type":"result","data":"undefined"}
17:13:33.124/D: onFailure okhttp3.internal.ws.RealWebSocket@28f7592 java.io.EOFException null
17:13:33.894/I: Waiting for the Autojs server 192.168.123.228:8765 to issue command...
不兼容?

对于返回控件的 如果根据返回结果判断之后点击?

比如我python服务端执行:"auto_js.text("微信").findOne(2*1000)" 如果没有找到会返回None 但是如果找到会返回类似:{'mDepth': 8, 'mIndexInParent': 1, 'mStackTrace': '', 'mInfo': {'mSealed': True, 'mSourceNodeId': -4294967229}, 'mParentVirtualDescendantId': -1, 'mVirtualDescendantId': -1} 如果判断这个结果为真之后点击?

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.