Metadata-Version: 2.4
Name: AutoxJS
Version: 1.0.17
Summary: Launch Auto.js and AutoX.js scripts through Python in Termux.
Home-page: https://github.com/CannotLoadName/AutoxJS
Download-URL: https://github.com/CannotLoadName/AutoxJS/releases
Author: Enbuging
Author-email: electricfan@yeah.net
License: MIT License
Keywords: Auto.js,AutoX.js,Termux,Android,automation
Platform: Android
Platform: Linux
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: platform
Dynamic: summary

Run `python3 -m autoxjs -h` to learn how to use this package in the console.

The default config is for ozobi's modified AutoX.js version. For Auto.js and old versions of AutoX.js, running `python3 -m autoxjs -c intent_component org.autojs.autojs/.external.open.RunIntentActivity` to change the package name may be necessary.

In other environments such as QPython 3, Pydroid 3 and AidLux, changing config items **am_command**, **am_subcommand**, **am_user** and **temporary_path** may be necessary.

In new versions of Termux, config items above can also be modified to use **termux-am-socket** instead of the slow **termux-am**.

Use `import autoxjs` or `from autoxjs import *` to import this library in your script.

The `autoxjs.runString` function is used to simply run a JavaScript in a string.

The `autoxjs.runFile` function is used to run JavaScript files.

The `autoxjs.runAutoFile` function is used to run Auto.js and AutoX.js recording files.

The `autoxjs.Context` class is used to call JavaScript codes like RPC.

The `autoxjs.requestAutomation` function can request the automation service.

The `autoxjs.forceStop` function can force stop running scripts.

The `autoxjs.Location`, `autoxjs.Recorder` and `autoxjs.Sensor` classes were written as routines, but can also be used as a module. Thus they can be used to access the hardware in the device.

The `autoxjs.compressScript` function can be used to compress long JavaScript codes, making RPC calling faster.

The `autoxjs.bindAvailablePort` function can be used to bind a socket server to a port within the customized range.

The `autojs.injector.startServer` and `autojs.injector.stopServer` functions are used to manage the RPC server of the **autojs** library, in order to allow users not to have to start it manually. This library doesn't depend on it, so if you don't use it, just ignore it.
