The RPC framework of autojs allows you to use Python to operate phone.
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()
AutoX.js API documentation at <http://doc.autoxjs.com>
.
Distributed under the MIT license. See LICENSE <https://github.com/miloira/autojs/LICENSE>
for more information.