Skip to main content

Launch Auto.js and AutoX.js scripts through Python in Termux.

Project description

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.EventProxy class is used to emit and listen to broadcasts in Auto.js and AutoX.js.

The autoxjs.emitEvent function is used to simply emit broadcasts into Auto.js and AutoX.js.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoxjs-1.0.19.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoxjs-1.0.19-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file autoxjs-1.0.19.tar.gz.

File metadata

  • Download URL: autoxjs-1.0.19.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for autoxjs-1.0.19.tar.gz
Algorithm Hash digest
SHA256 e59098c510cfcaac774e150b32d28471b29828a2aa850c6c362df627d6980ca6
MD5 403935c629122bceed529ca89fd55c27
BLAKE2b-256 007919ebba5207bfd33fb5bca482cc2abcb0565f203ab2ca0bad4a53436169a1

See more details on using hashes here.

File details

Details for the file autoxjs-1.0.19-py3-none-any.whl.

File metadata

  • Download URL: autoxjs-1.0.19-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for autoxjs-1.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 e18aa6ef7fc0a828653458a198a4bd19db05d6e37aa0af940c73ce93b0e27405
MD5 2d849746ddd5a4e0d328f7cf4f47756a
BLAKE2b-256 aa911af679c93e1e353d87f741273f4ecf8452fb101ce8c71a7e7b14f03b75a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page